6.7.13
In the /etc/shadow file, which character in the password field indicates that a standard user account is locked?
!
Which chage option keeps a user from changing their password every two weeks?
-m 33
Which account type in Linux can modify hard limits using the ulimit command?
Root
What is the effect of the following command? chage -M 60 -W 10 jsmith
Sets the password for jsmith to expire after 60 days and gives a warning 10 days before expiration.
You suspect that the gshant user account is locked. Enter the command you would use in Command Prompt to show the status of the user account.
passwd -S gshant
Which of the following commands would you use to view the current soft limits on a Linux machine? Correct Answer: ulimit -n
ulimit -a
An employee named Bob Smith, whose username 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.)
userdel -r bsmith userdel bsmith;rm -rf /home/bsmith
You have performed an audit and 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?
usermod -L joer
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 with no other values changed. Which of the following commands would accomplish this?
usermod -l kjones kscott
Which of the following utilities could you use to lock a user account? (Select two.)
usermod passwd