Samba Configuration
 

  Here i have discussed about samba configuration for providing folder permissions for the users to access the their folder.


First create system user ( example : user1, user2, user3....)

and create default home folder for them in /home path ( example : /home/user1, /home/user2, /home/user3 )

add the users in samba user config file

smb -a user1 ---- adding user1 in samba family

smb -a user2 ---- adding user2 in samba family

smb -a user3 ---- adding user3 in samba family

You have to provide password ta add those users in the samba user file. 

 

and give the folder access permission by

chmod -R 777 /home/user1   ----   configured to access /home/user1 to every one, permission u can change

chmod -R 777 /home/user2   ----   configured to access /home/user2 to every one

chmod -R 777 /home/user3   ----   configured to access /home/user3 to every one

  

in smb.conf file add the following lines to configure to access their home folders with full permission

[user1]
path = /home/user1
valid users = user1  ------ configured olnly user1 can access /home/user1 and the rest of them are not
read only = no
writable = yes
guest ok = no
browsable = yes

[user2]
path = /home/user2
valid users = user2  ------ configured olnly user2 can access /home/user1 and the rest of them are not
read only = no
writable = yes
guest ok = no
browsable = yes 

user3]
path = /home/user3
valid users = user3  ------ configured olnly user1 can access /home/user1 and the rest of them are not
read only = no
writable = yes
guest ok = no
browsable = yes

check the samba by running testparm

and restart the service

service smb restart