Permission String Flashcards
Owner Permissions
Determine what the file’s owner can do with the file
World or Other Permissions
Determine what users who are not the file owner or members of its group can do with the file
Group Permissions
Determine what members of a group can do with the file
Execute permission type
Can run as a program
Permission string 3-digit Octal Code
- Numerical representation of permissions 0 to 7
- Starting with value of 0 and add a certain number based o the permissions
What octal code number represents execute permissions
1
What octal code number represents write permissions
2
What octal code number represents read permissions
4
Permission on symbolic links are always
777
File Type Code
Represents the file’s type and is often omitted from descriptions when the file type is not relevant
Types of File Type Code
- (-) normal data file
- (d) Directory disk
- (|) Symbolic link
- (p) named pipe
- (s) socket
- (b) block device
- (c) character device
Parts of the permission string
- File Type Code
- Owner Permissions
- Group Permissions
- World or Other Permissions
Directory execute bit
- Special bit that can be turned on or off
- Can grant or deny permission to search the directory
User Mask (umask command)
- Determines default permission for new files
- Directory files default 777
- Non-directory files default 666
- Default can be changed