Adding a New Samba User
I found myself looking up how to create a new user in
samba for about the 5th time today, so I tought I'd post about hwo to do it here so I don't forget :P
Starting from version 4, from what I can tell, Samba doesn't use the local unix accounts on your system. You need to create Samba accounts instead.
To do this, run the following command:
sudo smbpasswd -a username
Then type and retype the password you want for the new account. Note that you need to have a local unix account created under the same name as the samba account that you want to create. If you don't want a real account under the name of the samba account that you want to create, you can create a 'dud' account without a home directory or shell like so:
sudo useradd username --shell /bin/false
I hope this helps someone besides myself. If it did, try commenting below. You don't need an account, and you don't have to provide your email address either (though I seriously won't spam you at all if you do provide it!).