Click to See Complete Forum and Search --> : Folder sharing permissions with SAMBA (newbie questions)


Alphabet
07-26-2002, 04:38 AM
I've set up SAMBA on SuSE 8.0 and can share folders but I have a couple of folder permissions questions.

I have 6 PCs running Win98 on a LAN. I have set up a share in SAMBA (/home/quality)

Can I assign the following permissions to this folder?

1. User 1 and User 2 have full read/write access to the folder
2. User 3 and User 4 have read only access to the folder
3. User 5 and User 6 do not have any access to the folder

Secondly, if the above is possible, how do I do it?

Thanks in advance for any help.

cowanrl
07-26-2002, 04:54 AM
Yes it is possible. Under your /home/quality share put these lines:

read only = yes
write list = user1 user2
invalid user = user5 user6

You need to be sure that user1 and user2 have read/write access to the /home/quality directory on your server. You can do that buy assigning rwx to "others" on the directory and let Samba take care of controlling access. Or, yo could create a group that user1 and user2 belong to, assign that group to the /home/quality directory and give that group write access.

Alphabet
07-26-2002, 07:46 AM
Thanks cowanrl it worked!

A problem I can see is when I've got say 2 users to have full control, 20 to have read only and 80 to have no access. Although I can set up groups I have such a lot of folders with different permission requirements that it's going to take a bit of planning to get set up right. I may have to have a write list, read only and invalid user group for each folder that I have shared.