suid & sgid on directories
Hi
I'm having a bit of a problem with the suid and sgid feature in a directory. I read somewhere that Quote:
Code:
arun~]$mkdir /tmp/abc Code:
cd /tmp/abc |
Hello,
The SUID bit is set on files, mainly scripts, to make them run as the user who is the owner of the script rather than the one who started the script. The same applies for the SGID bit. If the SGID on a file is set then it will run with the privileges of the files group owner, instead of the privileges of the user executing it. You can also set SGID to directories so that any files created by any users in this directory will inherit the group permissions. So basically setting a SUID on a directory has no effect for as far as file creation is concerned whereas SGID does what you need. If you want to use SGID, then create a special group and make the necessary users member of that group. Kind regards, Eric |
Hi Eric
Thank you so much for your reply..... |
Hi,
You're welcome! Have fun with Linux. Kind regards, Eric |
All times are GMT -5. The time now is 07:00 AM. |