Failed to add entry for user xxx.解决办法
这是因为没有加相应的系统账号,所以会提示Failed to add entry for user的错误,
·
出错:
sudo smbpasswd -a xxx
New SMB password:
Retype new SMB password:
Failed to add entry for user bearpi.
原因:
这是因为没有加相应的系统账号,所以会提示Failed to add entry for user的错误,
解决:
首先
sudo vim /etc/samba/smb.conf
然后输入下面的东西到最后一行,注意一定得是你自己电脑的用户名字:
[work]
comment = samba home directory
path = /
public = yes
browseable = yes
public = yes
writeable = yes
read only = no
valid users = lzy //你自己的电脑用户名字(我这就是lzy)
create mask = 0777
directory mask = 0777
#force user = nobody
#force group = nogroup
available = yes

成功

更多推荐
所有评论(0)