[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 revisionLast revisionBoth sides next revision | ||
slackbook:filesystem_permissions [2012/09/09 15:17 (UTC)] – [SUID, SGID, and the Sticky Bit] update document with original text and formatting mfillpot | slackbook:filesystem_permissions [2012/10/15 21:06 (UTC)] – gerardo.zamudio | ||
---|---|---|---|
Line 23: | Line 23: | ||
case, the permissions are rwxr-xr-x, the user is root and the group is | case, the permissions are rwxr-xr-x, the user is root and the group is | ||
also root. The permissions section, while grouped together, is really | also root. The permissions section, while grouped together, is really | ||
- | three seperate | + | three separate |
permissions granted to the user that owns the file. The second set of | permissions granted to the user that owns the file. The second set of | ||
three are those granted to the group owner, and the final three are | three are those granted to the group owner, and the final three are | ||
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 166: | Line 166: | ||
By adding these values together, we can reach any number between 0 and | By adding these values together, we can reach any number between 0 and | ||
7 and specify all possible permission combinations. For example, to | 7 and specify all possible permission combinations. For example, to | ||
- | grant both read and write privilages | + | grant both read and write privileges |
use the number 6. The number 3 would grant write and execute | use the number 6. The number 3 would grant write and execute | ||
permissions, | permissions, | ||
Line 184: | Line 184: | ||
**// | **// | ||
- | < | + | <key>'+'</ |
While this may be easier to | While this may be easier to | ||
remember, it's often easier to use the octal permissions. | remember, it's often easier to use the octal permissions. | ||
Line 205: | Line 205: | ||
group, and //" | group, and //" | ||
adding or removing permissions with the //" | adding or removing permissions with the //" | ||
- | sets can be changed at once by seperating | + | sets can be changed at once by separating |
Line 261: | Line 261: | ||
Notice the permissions on **// | Notice the permissions on **// | ||
- | an < | + | an <key>'x'</ |
- | < | + | <key>'s'</ |
**// | **// | ||
it, the process will run as the user //" | it, the process will run as the user //" | ||
Line 268: | Line 268: | ||
soon as you look at the two files it modifies. Neither | soon as you look at the two files it modifies. Neither | ||
''/ | ''/ | ||
- | are writeable | + | are writable |
their personal information, | their personal information, | ||
run as root in order to modify those files. | run as root in order to modify those files. | ||
Line 288: | Line 288: | ||
- | Naturally, being a directory for the storage of temporary files sytem | + | Naturally, being a directory for the storage of temporary files system |
- | wide, ''/ | + | wide, ''/ |
executable by anyone and everyone. Since any user is likely to have a | executable by anyone and everyone. Since any user is likely to have a | ||
file or two stored here at any time, it only makes good sense to | file or two stored here at any time, it only makes good sense to | ||
prevent other users from deleting those files, so the sticky bit has | prevent other users from deleting those files, so the sticky bit has | ||
- | been set. You can see it by the presence of the < | + | been set. You can see it by the presence of the <key>'t'</ |
- | place of the < | + | place of the <key>'x'</ |
Line 327: | Line 327: | ||
</ | </ | ||
+ | ====== Chapter Navigation ====== | ||
+ | |||
+ | **Previous Chapter: [[slackbook: | ||
+ | |||
+ | **Next Chapter: [[slackbook: | ||
====== Sources ====== | ====== Sources ====== | ||
<!-- If you copy information from another source, then specify that source --> | <!-- If you copy information from another source, then specify that source --> | ||
- | * Original source: [[http:// | + | |
<!-- Authors are allowed to give credit to themselves! --> | <!-- Authors are allowed to give credit to themselves! --> | ||
- | < | + | |
- | <!-- * Contrbutions | + | <!-- * Contributions |
<!-- Please do not modify anything below, except adding new tags.--> | <!-- Please do not modify anything below, except adding new tags.--> | ||
<!-- You must also remove the tag-word " | <!-- You must also remove the tag-word " | ||
{{tag> | {{tag> |