RHCSA Ch5 Flashcards
1
Q
delete user and home directory
A
userdel -r bob
2
Q
modify a user
A
usermod
3
Q
usermod specify home dir
A
- d homedir
- m =to move directory
4
Q
Change user ID
A
-u 1234
5
Q
usermod change primary group ID
A
-g 1234
group must exist first
6
Q
usermod append to existing settings
A
-a
7
Q
usermod change login name
A
-l name
8
Q
usermod lock or unlock account
A
- L
- U
9
Q
add a new group
A
groupadd -g 1010 jane
10
Q
Delete password
A
passwd -d user
11
Q
expire password
A
passwd -e user
12
Q
Lock password
A
passwd -l user
13
Q
Unlock password
A
passwd -u user
14
Q
Password Output status
A
passwd -S user
15
Q
how do you know if a users password is locked?
A
The password hash in /etc/shadow will begin with !!
or
sudo passwd -S brian