First we need to add a group for our users to join.
sudo groupadd smbusers
Then we need to use the useradd command to add new users to the group we just created (or any existing group); and add the user to the system. The syntax is "useradd -G {group-name} username"
sudo useradd -G smbusers joe sudo passwd joe (optional) sudo smbpasswd -a joe
If you already have a user that is created and want to add them to a group, you can do this.
sudo usermod -a -G smbusers joe
*NOTE* When I use "smbusers" that is the group name. And "joe" is the username.
References:
http://www.cyberciti.biz/faq/adding-a-user-to-a-samba-smb-share/
http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/
0 comments:
Post a Comment