Basic Knowledge Flashcards
I want to be a super user…
Use _____ to become the superuser. If the _____ switch is specified when running this command, the user will also inherit the root user’s environment.
su -
What was that admin group?
The user running the su command must be in the _____ group or else the command will fail.
wheel
We no longer have just 1 admin…
This software provides activity logging and allows the administrator to configure which users can run which commands as the superuser.
**security/sudo **
What did that mean again?
ls -l was ran on this directory. What permissions are on memo.txt?
- rwx–x–x 1 root bin 4515 Aug 14 13:08 view
- rw-r–r– 1 root bin 218 Aug 14 13:08 memo.txt
644
The first (leftmost) character in the first column indicates whether this file is a regular file, a directory, a special character device, a socket, or any other special pseudo-file device.
In this example, the - indicates a regular file.
The next three characters, rw- in this example, give the permissions for the owner of the file.
The next three characters, r–, give the permissions for the group that the file belongs to.
The final three characters, r–, give the permissions for the rest of the world.
A dash means that the permission is turned off. In this example, the permissions are set so the owner can read and write to the file, the group can read the file, and the rest of the world can only read the file.