Linux Permissions

mmaki

Member
Dec 27, 2000
77
0
0
What Linux permissions do I give a directory if I want the users, who are members of the group the directory is in, to be able to read and write but not delete (except for the owner/creator)? I understand this has to do with the SUID/SGID and Sticky Bit which I can't seem to get quite right.

For example I have a shared directory in a division under home that I want all users of the division (admin) to be able to read and write but not delete.

/home/admin/shared

All users in admin are members of the admin group and the "shared" directory is in the group admin. Home, admin, and shared are owned by root.

Thanks!


 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
Give those users read only permission on the directory itself, not the individual files. Then set the stick bit on the directory chmod g+s <directory name..

If you do that any time a user wants to rename or delete a file they must either: A) own the file themselves; B) have write permission for the directory; C) or be root.
 

TonyRic

Golden Member
Nov 4, 1999
1,972
0
71
Your question on read/write but no delete will require the use of ACL's. Basic permissions on files and directories do not give you that wide of a setting. It gives you read, write and execute only, and write means write which always includes delete.
 

mmaki

Member
Dec 27, 2000
77
0
0
TonyRic &amp; Damaged thanks for the replies. I've done a little research since my posting and this is what I found. I don't think I need to deal with ACL's because of the sticky bit, but again I'm a newbie at this so I could very well be wrong. When I get back to the office next week I do some experimenting with this and see what I can come up with. Thanks again!
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |