1/32
Vocabulary practice flashcards covering Linux users, groups, commands, file and directory permissions, octal/symbolic notation, umask, and the sticky bit.
Regular User
A standard Linux user account created for individuals who use the system, configured with limited permissions.
Root User (Superuser)
The most powerful account on a Linux system, possessing all rights to perform virtually any action, including user creation; generally assigned a UID of 0.
UID (User Identification)
A unique identifier assigned to each user account on a Linux operating system.
/etc/passwd
The system file in Linux that stores all user account information, including usernames and UIDs.
Group
A collection of users in Linux enabling permissions to be managed collectively at the group level rather than per individual user.
GID (Group Identification)
A unique identifier assigned to each distinct group on a Linux system.
/etc/group
The Linux system configuration file that stores all information concerning system groups, including group names and GIDs.
adduser
A Linux command used to add a new user to the system.
userdel
A Linux command used to delete a user account and its associated files.
addgroup
A Linux command used to create and add a new group to the system.
groups
A command that displays the groups to which a specified user belongs (syntax: groups [options] [users]).
id
A command that displays a user's numerical identifier (UID) alongside the group identifiers (GIDs) of the groups to which the user belongs.
Owner (User)
The permission category representing the individual account that owns the file or directory, which defaults to the user who created it.
Group (Permission Category)
The permission category assigned to members of the file or directory's owning group, which by default shares the same name as the owner.
Other Users (Other)
The permission category that encompasses all system users who are neither the object's owner nor members of its assigned group.
File Type Character
The leading character in a long directory listing (ls -l) designating object type: '-' for a regular file, 'd' for a directory, or 'l' for symbolic links.
Read Permission (r) on a File
The file permission granting the ability to view or read the data contents of a file (e.g., using the cat command).
Write Permission (w) on a File
The file permission granting the ability to alter or modify the contents of a file (e.g., using the vi editor).
Execute Permission (x) on a File
The file permission granting the ability to run the file as a program or script.
Read Permission (r) on a Directory
The directory permission allowing a user to read and list the contents within the directory (e.g., using the ls command).
Write Permission (w) on a Directory
The directory permission allowing modifications inside the directory, including creating, adding, deleting, or renaming files and subdirectories (e.g., using touch).
Execute Permission (x) on a Directory
The directory permission granting the ability to enter the directory (via cd) and execute commands against its contents.
Locked Directory
A condition where a directory lacks the execute (x) permission, rendering it impossible to access, create, delete, or rename files within it, even if read (r) and write (w) rights are granted.
chgrp
The command utilized to change the group ownership of a file or directory.
chown
The command utilized to change the user owner of a file or directory.
chmod
The 'change mode' command utilized to alter access rights and permissions for owner, group, and others.
Symbolic Method (chmod)
A method of modifying permissions using letter codes: targets ('u', 'g', 'o', 'a'), operators ('+', '-', '='), and permissions ('r', 'w', 'x').
Numeric Method (chmod)
An octal representation method of setting permissions where each right is assigned a base value: r has the value 4 (22 or binary 100), w has the value 2 (binary 010), and x has the value 1 (binary 001).
chmod -R
The recursive flag for chmod used to modify permissions recursively through a directory and all of its sub-content.
umask
A setting that specifies default permissions that should be removed or denied by default when new files or directories are created.
Default Base Permissions
The maximum initial rights before applying umask: files default to rw-rw-rw- (666, never executable by default) and directories default to rwxrwxrwx (777).
umask -S
The umask command option used to display the current mask in symbolic notation (e.g., u=rwx,g=rwx,o=rx).
Sticky Bit
A security permission represented by 't' in the other-execute position that protects shared directories, ensuring that only the file owner, directory owner, or superuser can delete or rename files.