6.7.13 Practice Questions

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Which chage option keeps a user from changing their password every two weeks?

-m 33 Using chage -m 33 forces a user to keep his or her password for 33 days. This sets the minimum number of days that must pass after a password change before a user can change the password again. Be aware of the other chage options: -M sets the maximum number of days before the password expires. -W sets the number of days before the password expires that a warning message displays. The chage -a option is not a valid option.

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. Using chage -M 60 -W 10 jsmith sets the password for jsmith to expire after 60 days and gives a warning 10 days before expiration. Using chage sets user passwords to expire. Be aware of the following options: -M sets the maximum number of days before the password expires. -W sets the number of days before the password expires that a warning message displays. -m sets the minimum number of days that must pass after a password change before a user can change the password again.

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

! (Exclamation Point)! or !! in the password field of /etc/shadow indicates that the account is locked and cannot be used to log in. The /etc/shadow file holds passwords and password expiration information for user accounts.$ preceding the password identifies the password as an encrypted entry. * indicates a system user account entry (which cannot be used to log in).

Which account type in Linux can modify hard limits using the ulimit command?

Root Only the root user in Linux can modify hard limits using the ulimit command. Standard and administrator are Windows user types. Users can modify soft limits but not hard limits using the ulimit command.

Which of the following utilities could you use to lock a user account? (Select two.)

passwd usermod Use the following utilities to lock a user account: > passwd -l disables (locks) an account. This command inserts !! before the password in the /etc/shadow file. > usermod -L disables (locks) an account. This command inserts ! before the password in the /etc/shadow file. The useradd command creates new user accounts, and userdel deletes user accounts from the system. The ulimit command is used to limit computer resources.

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 Use passwd -S gshant to display the status of the gshant user account. > LK indicates that the user account is locked. > PS indicates that the user account has a password. Viewing the /etc/shadow file also displays whether the user account is disabled. The second field for each entry in the /etc/password file is the password field: > $ preceding the password identifies the password as an encrypted entry. > ! or !! indicates the account is locked and cannot be used to log in. > * indicates a system account entry, which cannot be used to log in.

Which of the following commands would you use to view the current soft limits on a Linux machine?

ulimit -a The ulimit -a command displays the current limits. The default shows soft limits. The ulimit -c command limits the size of a core dump file. The ulimit -n command limits the maximum number of files that can be open. The ulimit -u command limits the number of concurrent processes a user can run.

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 bsmith;rm -rf /home/bsmith userdel -r bsmith The userdel -r command deletes a user's home directory and user account. The userdel command by itself does not delete a user's home directory and user account. Executing rm -rf on the user's home directory after executing userdel removes the home directory. The userdel -h command displays the syntax and options for the userdel command.

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 Use usermod -L joer to lock the user's password. Doing so disables the account. The usermod -l joer command changes the account's login name. The -d flag is used for changing the account's home directory. The -u flag is used 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 with no other values changed. Which of the following commands would accomplish this?

usermod -l kjones kscott Use the usermod command to modify user settings. Use the -l flag to signal a change to the username. The correct syntax requires the new username value be given, followed by the old username. The -u flag changes the UID number.


Set pelajaran terkait

HA: Chapter 16 - Breasts and Axillae

View Set

Describe the difference between elements, compounds, and mixtures and give three examples

View Set

Chapter 7: Founding a Nation, 1783-1791

View Set

Chapter 9: The Integumentary System

View Set

Addition and Subtraction of Fractions

View Set

Why did Britain go to war with Germany in 1914?

View Set

FSU Calhoun Micro Final Exam Unit 4

View Set

7.3g Understand effect of sample size for Proportion

View Set

APUSH Chapters 1-6 American Pagent Review

View Set

Texas History Practice Questions

View Set