-
If you are serving a high traffic web/DNS server, and recently having PING loss to the server and not all HTTP request were successful to i...
-
tar tar in AIX by default does not support compression. You will need to incorporate with gzip command to have it tar and compress at the...
-
How to show my NIC MTU value, and how do I change it to use Jumbo Frame? list current value $ lsattr -E -l en0 -a mtu ...
SUID, SGID, Sticky Bits, which one to use?
Summary:
drwxrwxrwt - Sticky Bits - chmod 1777
drwxrwsrwx - SGID set - chmod 2777
drwsrwxrwx - SUID set - chmod 4777
SUID:
The SUID permission makes a script to run as the user who is the owner of the script, rather than the user who started it.
SGID:
If a file is SGID, it will run with the privileges of the files group owner, instead of the privileges of the person running the program.
If a directory is SGID, it will inherits the privileges of the directory group owner.
Sticky Bits:
If the sticky bit is set for a directory, only the owner of that directory or the owner of a file can delete or rename a file within that directory.
Mostly use in /tmp folder
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment