LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-26-2004, 04:59 PM   #1
psychomaniac
LQ Newbie
 
Registered: Apr 2004
Location: nevada
Distribution: redhat
Posts: 2

Rep: Reputation: 0
Exclamation 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???
 
Old 04-26-2004, 05:33 PM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 46
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.
 
Old 04-27-2004, 10:23 AM   #3
psychomaniac
LQ Newbie
 
Registered: Apr 2004
Location: nevada
Distribution: redhat
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the idea, but that didn't work either.
 
Old 04-27-2004, 04:53 PM   #4
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 46
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
 
Old 04-29-2004, 02:22 PM   #5
Freeman-Jo
Member
 
Registered: Apr 2004
Location: Internet
Distribution: Gentoo
Posts: 30

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba share permissions anorman Linux - Software 1 10-22-2005 02:49 AM
I need help setting samba share permissions. trilect Linux - Software 10 08-24-2004 07:56 AM
samba share permissions keep resetting Red Squirrel Linux - Newbie 0 03-03-2004 08:55 PM
Samba Share Permissions stever Linux - Newbie 4 05-17-2003 02:26 AM
WinXP samba share - permissions? armstrj Linux - General 0 04-08-2002 03:40 AM


All times are GMT -5. The time now is 08:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration