出错:
sudo smbpasswd -a xxx
New SMB password:
Retype new SMB password:
Failed to add entry for user bearpi.
原因:
这是因为没有加相应的系统账号,所以会提示Failed to add entry for user的错误,
解决:
-
samba使用当前系统账户

-
增加相应的系统账号:
groupadd xxx(用户名) -g 6000
useradd xxx(用户名) -u 6000 -g 6000 -s /sbin/nologin -d /dev/null