[Linux] chmod setuid setgid sticky


Writing time : 2015-12-27 01:43:14

chmod, setuid, setgid, sticky

chmod


chmod represents an octal representation of the read, write, and execute permissions of a directory or file.

Typical examples are 755 and 644, and chmod is also expressed in 4 octal digits.

The reason 3 characters are used is that if the first digit is not used, it is recognized as a default value of 0.

That is, 755 and 644 can be viewed as 0755 and 0644.

If the first byte is 0, it has no meaning, and if it is 1, it means sticky mode 2, setgid mode 4, setuid mode.

setuid mode and setgid mode reference link


https://en.wikipedia.org/wiki/Setuid

sticky mode reference link


https://en.wikipedia.org/wiki/Sticky$ITALICWORDbit

Reference URL


https://en.wikipedia.org/wiki/Chmod
https://en.wikipedia.org/wiki/Chmod#Special$ITALICWORDmodes
https://en.wikipedia.org/wiki/Setuid
https://en.wikipedia.org/wiki/Sticky$ITALICWORDbit
http://forums.oscommerce.com/topic/352153-is-chmod-2775-secure/

Previous post

Next post

Other posts in the category