8.9 Operations With User Passwords

25 July 2022
4.7 (114 reviews)
7 test answers

Unlock all answers in this set

Unlock answers (3)
question
One of your users, Karen Scott, has recently married and is now Karen Jones. She has requested that her username be changed from kscott to kjones, but no other values change. Which of the following commands will accomplish this?
answer
usermod -l kjones kscott
question
You have performed an audit and have found an active account for an employee with the username joer. This user no longer works for the company. Which command can you use to disable this account?
answer
usermod -L joer
question
An employee named Bob Smith, whose user name is bsmith, has left the company. You have been instructed to delete his user account and home directory. Which of the following commands would produce the required outcome? (select two)
answer
userdel bsmith;rm -rf /home/bsmith userdel -r bsmith
question
A user with the account name larry has just been terminated from the company. There is good reason to believe that the user will attempt to access and damage files in the system in the very near future. Which of the following commands will disable or remove the user account from the system and remove his home directory?
answer
userdel -r larry
question
In the /etc/shadow file, which character in the password field indicates that a standard user account is locked?
answer
!
question
Which of the following utilities could you use to lock a user account? (Select two. Each answer represents an independent solution.)
answer
usermod passwd
question
You suspect that the gshant user account is locked. Enter the command you use at the command prompt to show the status of the user account.
answer
passwd -S gshant