Add User to Samba
Step 1: Add a user joe to UNIX/Linux system
Type the following command:
# adduser joe
Step 2: Add and Enable joe to samba
# smbpasswd -a joe # smbpasswd -e joe
Step 3: Add users to a Samba share
[accounts] comment = Accounts data directory path = /data/accounts valid users = vivek raj joe public = no writable = yes
Save the file.
Step 4: Create directory according the users path
#mkdir /data/accounts
Step 5: Restart the samba
#service smb restart











