Re: Directory permissions
Kevin Philp <[email protected]> Tue, 11 Apr 2017 06:32:04 -0700 (PDT)
| Newsgroups | gmane.user-groups.linux.ilug.general |
|---|---|
| Message-ID | <[email protected]> |
From http://www.thegeekstuff.com/2013/02/sticky-bit/ A Sticky bit is a permission bit that is set on a file or a directory that lets only the owner of the file/directory or the root user to delete or rename the file. No other user is given privileges to delete the file created by some other user. It sounds what I need but if I think the problem is all the users are split into groups and the directory in question has the same group membership. So - I may be wrong here - but it looks like if I am in the group I can delete the directory - and that is what happened. On Monday, 10 April 2017 17:07:10 UTC+1, Kevin Philp wrote: > > At work we have a lot of files shared over nfs4. Our users need read/write > access to the shared directory. Today one of our users accidently deleted a > major sub directory on a project containing hundreds of files. We recovered > all the files and they are backed up but it was a nuisance. So how do I > provide rw access to a group working on files in a directory but stop them > moving or deleting the whole directory? > > If I set the permissions rwxr-x--- they can't make new files in the > directory > > If I set the permissions rwxrwx--- they can delete the directory > > Any suggestions welcome > > Kevin. > -- Irish Linux Users Group --- You received this message because you are subscribed to the Google Groups "ILUG" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send an email to [email protected]. Visit this group at https://groups.google.com/a/linux.ie/group/ilug/. To view this discussion on the web, visit https://groups.google.com/a/linux.ie/d/msgid/ilug/23f2debc-04fe-4f92-9fc3-57ebcbd7109d%40linux.ie.