Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file permissions 1

Status
Not open for further replies.

jdaddy

Programmer
Jan 3, 2003
3
US
I have a linux (redhat 6.1) server running samba (not sure what version, but can be updated if necessary).
I have some windows 98 users connecting the the samba share.
I would like to restrict user access in a specific way...
I want to allow them to create and edit files but not allow them to delete or move any files (that is, I don't want them to be able to delete or move files they have created).
I have heard this is possible in windows 2k/xp and figured
it must be possible in the linux arena as well.
I have tried making the parent directory the files are in r/w but non executable and the files themselves r/w, which allows them to modify files, but as well as not allowing them to delete they cannot create files either.
Is what I want to do even possible in linux?

thanks,

j
 
Look at the manpage for chattr, with the 'chattr' command you can change file attributes including whether the file can be deleted or changed in anyway. Hope this helps. An infinite number of monkey typing at an infinite number of keyboards will eventually populate the internet.
 
Thanks, you rule. That was exactly what I was looking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top