People take note. If you have multiple users shares on your file server and only want each user to access their own share, doru001 suggests removing the force user = and force group = lines.
Originally Posted by doru001
I leave them in because I have multiple users, some accessing the same shares and some accessing different ones.
you can achieve this by adding some or all of the following tags to the Share section of your smb.conf file
For example here is the share Videos section of my smb.conf
valid users =
invalid users =
read list =
write list =
Here me and my wife have access to the folder, but only I can make changes. Our three daughters do not have access to the folder.
path = /home/brad/Videos
writeable = yes
valid users = brad,julie,@brad,@julie
invalid users = talitha,emily,maggie,@talitha,@emily,@maggie
user = brad,julie,@brad,@julie
read list = julie,@julie
write list = brad,@brad
force group = brad
force user = brad
create mask = 0644
directory mask = 0755