Basic Knowledge Flashcards

1
Q

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.

A

su -

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What was that admin group?

The user running the su command must be in the _____ group or else the command will fail.

A

wheel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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.

A

**security/sudo **

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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
A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly