[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
slackbook:filesystem_permissions [2012/10/12 09:35 (UTC)] – Fix a formatting issue. alienbob | slackbook:filesystem_permissions [2012/10/15 20:16 (UTC)] – [Permissions Overview] fixed minor typo gerardo.zamudio | ||
---|---|---|---|
Line 12: | Line 12: | ||
- | < | + | < |
darkstar:~$ ls -l /bin/ls | darkstar:~$ ls -l /bin/ls | ||
-rwxr-xr-x 1 root root 81820 2007-06-08 21:12 /bin/ls | -rwxr-xr-x 1 root root 81820 2007-06-08 21:12 /bin/ls | ||
Line 36: | Line 36: | ||
|Others |r-x |Everyone else may read and execute| | |Others |r-x |Everyone else may read and execute| | ||
- | he permissions are pretty self explainatory | + | The permissions are pretty self explanatory |
files. Read, write, and execute allow you to read a file, write to it, | files. Read, write, and execute allow you to read a file, write to it, | ||
or execute it. But what do these permissions mean for directories? | or execute it. But what do these permissions mean for directories? | ||
Line 51: | Line 51: | ||
- | < | + | < |
darkstar:~$ ls -ld /home/alan | darkstar:~$ ls -ld /home/alan | ||
drwxr-x--- 60 alan users 3040 2008-06-06 17:14 /home/alan/ | drwxr-x--- 60 alan users 3040 2008-06-06 17:14 /home/alan/ | ||
Line 76: | Line 76: | ||
- | < | + | < |
darkstar:~# ls -l /tmp/foo | darkstar:~# ls -l /tmp/foo | ||
total 0 | total 0 | ||
Line 93: | Line 93: | ||
- | < | + | < |
darkstar:~# chown root:root /tmp/foo/b | darkstar:~# chown root:root /tmp/foo/b | ||
darkstar: | darkstar: | ||
Line 108: | Line 108: | ||
- | < | + | < |
darkstar:~# chown -R root:root / | darkstar:~# chown -R root:root / | ||
Line 116: | Line 116: | ||
- | < | + | < |
darkstar:~# chown :wheel /tmp/foo/a | darkstar:~# chown :wheel /tmp/foo/a | ||
darkstar:~# ls -l /tmp/foo | darkstar:~# ls -l /tmp/foo | ||
Line 174: | Line 174: | ||
- | < | + | < |
darkstar:~# ls -l /tmp/foo/a | darkstar:~# ls -l /tmp/foo/a | ||
-rw-r--r-- 1 root root 0 2008-06-06 22:29 a | -rw-r--r-- 1 root root 0 2008-06-06 22:29 a | ||
Line 208: | Line 208: | ||
- | < | + | < |
darkstar:/ | darkstar:/ | ||
total 0 | total 0 | ||
Line 250: | Line 250: | ||
- | < | + | < |
darkstar:~# ls -l / | darkstar:~# ls -l / | ||
/etc/passwd \ | /etc/passwd \ | ||
Line 282: | Line 282: | ||
- | < | + | < |
darkstar:~# ls -ld /tmp | darkstar:~# ls -ld /tmp | ||
drwxrwxrwt 1 root root 34844 2008-03-24 16:11 /tmp | drwxrwxrwt 1 root root 34844 2008-03-24 16:11 /tmp | ||
Line 311: | Line 311: | ||
- | < | + | < |
darkstar:~# chmod 1777 /tmp | darkstar:~# chmod 1777 /tmp | ||
darkstar:~# chmod 4711 / | darkstar:~# chmod 4711 / | ||
Line 322: | Line 322: | ||
- | < | + | < |
darkstar:~# chmod ug+rwx, | darkstar:~# chmod ug+rwx, | ||
darkstar:~# chmod u+rws,go+x / | darkstar:~# chmod u+rws,go+x / |