Flashcards in Manage File Permissions and Ownership Deck (6):
1. Permission String | 2. # of Links | 3. Owner | 4. Group | 5. Size | 6. Date & Time | 7. File/Directory Name
Chmod "Change mode"
Modifies permissions of files and directories.
chmod [-option] mode [file/directory name]
-c = Report changes
-f = Suppress error msg
-v = Verbose Diagnostic output
-R = Change files/dir. Recursively.
Chown "Change Ownership"
Modifies the owner, group, or both of files/directories
chown [-option] [owner]:[group] [filename/directory]
SUID "Set User ID" and SGID "Set Group ID"
Allow regular users to execute tasks with permission of the root user. Can only be applied to binary executable files not shell scripts.
When an executable file with SUID is run, the user who ran the file temporarily becomes the file's owner.
+/- s = Both execute and SUID/SGID are enabled.
+/- S = Execute is disabled. SUID/SGID enabled.
Protects files and directories so that only Owner and Root can rename or delete them.
Forces file to remain in memory instead of loading from disk.
chmod +/- -t [filename/directory]