LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   samba share permissions? (https://www.linuxquestions.org/questions/linux-software-2/samba-share-permissions-174842/)

psychomaniac 04-26-2004 04:59 PM

samba share permissions?
 
I am trying to set up a linux file server for a school that I intern at. I want to be able to share two folders one called drop and one called share with certain user permissions. I have set up the folders to be shared and that works. I have a mask to allow the user student to be able to save their files once and then once its saved it becomes read only. My problem is that I want the teacher to be able to delete or change anything he wants but not the students. I tried using a mask of 0474 and added made student the owner and teacher the group. But it still doesn't let the teacher do what he wants to the files. Any ideas???

synaptical 04-26-2004 05:33 PM

i've never used masks with samba, but i think the "admin users" options gives superuser privileges in that directory:

path = /path/to/shares
comment = give teacher1 superuser status
admin users = teacher1


etc.

psychomaniac 04-27-2004 10:23 AM

Thanks for the idea, but that didn't work either.

synaptical 04-27-2004 04:53 PM

i think your permissions are messed up. i would make them more standard, ie., not making the teacher the group, that sounds wrong to me. then once that is sorted out, i would try using the admin function again.

read over this guide, chapters 8 and 9 especially:
http://us1.samba.org/samba/docs/using_samba/toc.html

Freeman-Jo 04-29-2004 02:22 PM

weird, mask of 474, and user is student would mean student can only real. It would make more sense, to have teacher as a group, each teacher have his/per own login. mask of 774, user is root, group is teacher. then student would be everybody else and get a 4. But I still don't get it how can you have a write once on smb.


All times are GMT -5. The time now is 01:59 PM.