0

I have a folder owned by a group named "wheel".

The 'ls' command details for that folder is:

drwxrws--- 2 tps wheel 4096 may 8 08:10 tsreports 

(tps = a user, owner of the file, wheel = the group, tsreports = name of the folder)


I need to configure the folder permissions in such way that files written into it are still owned by the wheel group, but so that one member of wheel cannot delete another member's files.

I think I already managed the part where newly created files in the folder will be automatically owned by the 'wheel' group (I used chmod g+s tpsreports in order to do that) but I'm not sure how I can prevent one member of 'wheel' from deleting another's file.

I could use some help, Thanks.

1
  • This isn't the answer you're looking for, but it may not be entirely safe to allow multiple users to mix and mingle in a setgid directory. For example, there's nothing preventing someone from creating a symlink in this directory that targets a file within a user's home directory. Attempts to edit such symlinks could result in corruption of the target user's important configuration files. Commented May 8, 2019 at 12:47

1 Answer 1

1

On the internet, I found this URL, mentioning a "sticky bit", which might solve your problem.

Sign up to request clarification or add additional context in comments.

Comments