010-160 Exam QuestionsBrowse all questions from this exam

010-160 Exam - Question 54


Which of the following tasks can the command passwd accomplish? (Choose two.)

Show Answer
Correct Answer: BCE

The passwd command in Linux is used primarily to update users' authentication tokens (i.e., passwords). It can be used to change a user's password, which is its most common function. Additionally, the passwd command can be used to lock a user account, preventing the user from logging in using a password by appending a character ‘!’ to the encrypted password, which makes it unable to match any input password combinations. Therefore, the correct choices are changing a user’s password and locking a user account.

Discussion

17 comments
Sign in to comment
goblueOptions: BE
Jul 5, 2020

The correct answers are B & E.

JCoons03
Jul 5, 2020

This cant be right. Its primary function is to change the users password "B"

GeeGeeaROptions: BE
Apr 24, 2021

Answer: B and E. Passwd can change user password (-d) and can lock user password (-l) https://www.geeksforgeeks.org/passwd-command-in-linux-with-examples/

MIUOptions: BE
Nov 14, 2020

The correct answers are B & E. These are mainly used by this command, while C can be by "useradd" command.

h0st
Jan 9, 2021

B&C are the correct aswers

cyberchickOptions: BE
Jan 9, 2021

B&E, would be the correct answer, passwd command allows a user to change their password. passwd -l allows a user to lock the account.

Allan85Options: BE
Feb 20, 2021

B&E would be the correct answer

shoshaOptions: BE
Jan 18, 2022

The correct answers are B & E.

Ness12Options: BE
Nov 14, 2022

typing passwd does not create a new user

reyman07Options: BE
Sep 26, 2020

in order to create new user account, must use "useradd"

MiragicoOptions: BE
Mar 5, 2022

The correct answers are B & E.

AndrewGrassoOptions: BE
Oct 23, 2023

The passwd command is used to manage user authentication in Linux systems. The following tasks can be accomplished using the passwd command: Change a user’s password: The passwd command can be used to change a user’s password. A normal user may only change the password for their own account, while the superuser may change the password for any account. Lock a user account: The -l option is used to lock the password of a specified account, and it is available to root only. The result is that the user cannot use the password to log in to the system but can use other means such as SSH public key authentication. Therefore, the correct answers are B and E.

JamiB1979Options: CE
Jul 8, 2022

B & E Passwrd is the primary purpose of the command.

hughesd010
Aug 5, 2022

Given that the discussions that have been put forth are, up to, a couple of years old and NO review of the questions has been done, it appears that exam topics does not research, double-check or defend their answers.

geocis
Feb 26, 2024

It's not their job to do so. They provide the questions with the possible answers on the test. You do the research and discuss the questions with fellow users. The minute they start giving the correct answers, I can assure you the site will go down.

JarnBarn
Mar 8, 2024

Most of the answers on ET's Comptia exams are random. I believe Comptia sent a cease and desist letter and the compromise was randomizing the answers.

hughesd010Options: BE
Aug 15, 2022

Updated response...Based on more research, The answer "E" may be "Technically" incorrect. The text for selection "E" is "Lock a user account" where the "passwd" command actually "Locks\Expires the password". Per "https://www.geeksforgeeks.org/passwd-command-in-linux-with-examples/" the "-l" option lists the following: "-l, –lock: Lock the password of user. This appends the encrypted password of the user with a character ‘!’, and thus making it unable to match with any of input password combinations. This does not disable the account but prevents the user from logging in using a password. Though other authentication methods like ssh keys can be used to login to the account." So the account is "technically "NOT" locked but the password is. The site "https://www.cyberciti.biz/faq/linux-locking-an-account/" lists "locking" the password with the "-l" is the same as locking the account. If the account were truly locked "NO" authentication would be possible.

Marisasa58
Oct 8, 2022

C&E is the correct answer everywhere else

NetTechOptions: BE
Dec 12, 2022

The manual page for passwd specifies you can change the password or use the -l option to lock the password of the named account. B and E should the correct response.