Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
— | howto:linux:permissions [2014/01/29 03:12] (aktuální) – vytvořeno - upraveno mimo DokuWiki 127.0.0.1 | ||
---|---|---|---|
Řádek 1: | Řádek 1: | ||
+ | ====== Permissions cheatsheet ====== | ||
+ | |||
+ | [[man> | ||
+ | |||
+ | FIXME prepsat z http:// | ||
+ | |||
+ | ===== Meaning of RWX Combinations ===== | ||
+ | |||
+ | ^ Octal digit ^ Text equivalent ^ Binary value ^ Meaning ^ | ||
+ | | 0 | '' | ||
+ | | 1 | '' | ||
+ | | 2 | '' | ||
+ | | 3 | '' | ||
+ | | 4 | '' | ||
+ | | 5 | '' | ||
+ | | 6 | '' | ||
+ | | 7 | '' | ||
+ | |||
+ | |||
+ | ===== Meaning of RWX bits for files and folders ===== | ||
+ | |||
+ | ^ Access type ^ File ^ Folder ^ | ||
+ | | Read | If the file contents can be read | If the directory listing can be obtained | | ||
+ | | Write | If user or process can write to the file (change its contents) | If user or process can change directory contents somehow: create new or delete existing files in the directory or rename files. | | ||
+ | | Execute | If the file can be executed | If user or process can access the directory, that is, go to it (make it to be the current working directory) | | ||
+ | |||
+ | ===== Digital representation of setuid, setgid and sticky bits ===== | ||
+ | |||
+ | ^ Octal digit ^ Binary value ^ Meaning ^ | ||
+ | | 0 | 000 | setuid, setgid, sticky bits are cleared | | ||
+ | | 1 | 001 | sticky bit is set | | ||
+ | | 2 | 010 | setgid bit is set | | ||
+ | | 3 | 011 | setgid and sticky bits are set | | ||
+ | | 4 | 100 | setuid bit is set | | ||
+ | | 5 | 101 | setuid and sticky bits are set | | ||
+ | | 6 | 110 | setuid and setgid bits are set | | ||
+ | | 7 | 111 | setuid, setgid, sticky bits are set | | ||
+ | |||
+ | |||
+ | ===== Meanings of SUID, SGID and Sticky bits ===== | ||
+ | |||
+ | ^ SUID | If set, then replaces " | ||
+ | ^ SGID | If set, then replaces " | ||
+ | ^ Sticky | If set, then replaces " | ||