User management Flashcards

1
Q

Usernames are typically

A

8 characters
Lowercase
Don’t use special characters

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

Encrypted passwords are stored in

A

etc/shadow, only readable by root

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

The shell of an account can be

A

A cli application

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

useradd

A

Let’s you create a new user with certain parameters, including
-c comment
-m home directory
-s/shell/path the path to the shell

Eg:

useradd -c John Riverton -m /etc

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

userdel

A

Delete a user
userdel -r alex
Removes home directory

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

usermod

A

-c sets a comment for the user
-g sets the default group
-G adds additional groups
- s/shell/path sets the shell path

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

groupadd

A

Options include:
-g to set the GID

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