User management Flashcards
1
Q
Usernames are typically
A
8 characters
Lowercase
Don’t use special characters
2
Q
Encrypted passwords are stored in
A
etc/shadow, only readable by root
3
Q
The shell of an account can be
A
A cli application
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
5
Q
userdel
A
Delete a user
userdel -r alex
Removes home directory
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
7
Q
groupadd
A
Options include:
-g to set the GID