4.3 Special Permissions and Managing Services Flashcards
Linux categorizes files, programs, and directories as ___________.
Linux categorizes files, programs, and directories as items.
Managing Access Controls in Linux
Each _______ has privileges set for the owner of the _________, the _______associated with the item, and _______.
Each item has privileges set for the owner of the item, the group associated with the item, and others.
For each of these categories, there are three actions that we can allow or prevent: ______, ______, ______.
For each of these categories, there are three actions that we can allow or prevent: read, write, execute.
Inspecting File Permissions
Interpret the following:
-rw-r–r–
A file that only the owner can read and write, group and other / world permission only read
Changing File Permissions
File permissions can be set using two different notations: ______ and ______.
File permissions can be set using two different notations: symbolic and octal.
Name the command:
To invoke the root user for one command only.
sudo
Name the command:
To switch to another user, in this case the root user.
su
Name the command:
To edit the sudoers file
visudo
Name the command:
To list the sudo privileges for a user.
sudo -l
Name the command:
To determine the current user.
whoami
The ________ command allows a user to change their password.
The passwd command allows a user to change their password.
Use special permissions for three basic scenarios:
- Allowing multiple users to make changes to the same files inside a shared directory.
- Limiting users to only making changes to their own files within a shared directory.
- Allowing any user on the system to run a specific program as the root user.
For each of these three scenarios, there is a different
special bit setting that we can add to an item’s permissions.
The ________ and ________ can be used together to allow a group of users to collaborate in the same directory.
The SGID and sticky bits can be used together to allow a group of users to collaborate in the same directory.
When set together, they allow users to make changes to the same directory, but only to files they own.
The __________ bit lives in the execute position for the group permissions.
The Set Group ID (SGID) bit lives in the execute position for the group permissions.
Name the command:
A very small and simple command to locate executables in the system.
which command is very small and simple command to locate executables in the system.
It allows user to pass several command names as arguments to get their paths in the system. “which” commands searches the path of executable in system paths set in $PATH environment variable.