smbpasswd -a newusername
then you'll see prompt of
New SMB password:
Retype new SMB password:
Oops, you'll probably get
Failed to modify password entry for user newusernameIt's not that simple. What I have to do is adding users to ubuntu first by going to system>administration>users and groups. Adding user there then you'll be able to set user and password to SMB server at command line. When you see
Added user newusernamethen you are done.
Now SMB has to sync password with that set in Linux then you'll have to uncomment that line
unix password sync = yesand
encrypt passwords = trueby removing the semi-colon at the start of those lines.
It's a safe bet that you restart SMB server by
It's all OK sharing folders to my MacBook