2.7

Ace your homework & exams now with Quizwiz!

In the /etc/shadow file, which character in the password field indicates that a standard user account is locked?

! or !! in the password field of /etc/shadow indicates the account is locked and cannot be used to log in. ($ preceding the password identifies the password as an encrypted entry. * indicates a system user account entry (which cannot be used to log in).

Use the usermod utility to modify user settings. Use the_______ flag to signal a change to the username.

-l

Use the userdel command to delete a user from /etc/passwd and related files that allow access. Use the _________ option to also remove the home directory.

-r

Chapter 2

2.7

You suspect that the gshant user account is locked. Which command will show the status of the user account? (Tip: Enter the command as if at the command prompt.)

passwd -S gshant displays the status of the gshant user account. • LK indicates the user account is locked. • PS indicates the user account has a password.

The /etc/_________ file holds passwords and password expiration information for user accounts.

shadow

An employee named Bob Smith, with a user name of bsmith, has left the company. You have been instructed by your supervisor to delete his user account along with his home directory. Which of the following commands would produce the required outcome? (Choose all that apply.) userdel bsmith userdel -r bsmith userdel -h bsmith userdel bsmith;rm -rf /home/bsmith

userdel -r bsmith userdel bsmith;rm -rf /home/bsmith

A user with an account name of larry has just been terminated from the company. There is good reason to believe that the user will attempt to access and damage the files in the system in the very near future. Which command below will disable or remove the user account from the system and remove his home directory? userdel larry userdel -h larry userdel home larry userdel -r larry

userdel -r larry

Which of the following utilities would you typically use to lock a user account? (Select two. Each answer represents an independent solution.) usermod passwd userdel useradd

usermod passwd (passwd -l disables (locks) an account. This command inserts a !! before the password in the /etc/shadow file. • usermod -L disables (locks) an account. This command inserts a ! before the password in the /etc/shadow file)

usermod ______ joer to lock the user's password, thereby disabling the account.

usermod -L joer (usermod -l joer will change the account's login name, -d is used for changing the account's home directory, and -u for changing the account's numeric id. )

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? usermod -u kjones kscott usermod -l kscott kjones usermod -l kjones kscott usermod -u kscott kjones

usermod -l kjones kscott

You have performed an audit and have found active accounts for employees who no longer work for the company. You want to disable those accounts. What command example will disable a user account? usermod -L joer usermod -l joer usermod -d joer usermod -u joer

usermod L joer


Related study sets

11: Pricing Products and Services

View Set

Pharm 2 test 1 Lippincott quiz questions

View Set

Musculoskeletal System review quiz

View Set

Chapter 17: The Gastrointestinal Tract

View Set

Prep U Chapter 34: Assessment and Management of Patients with Inflammatory Rheumatic Disorders

View Set