Which of the following tasks can the command passwd accomplish? (Choose two.)
Which of the following tasks can the command passwd accomplish? (Choose two.)
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.
The correct answers are B & E.
This cant be right. Its primary function is to change the users password "B"
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/
The correct answers are B & E. These are mainly used by this command, while C can be by "useradd" command.
B&C are the correct aswers
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.
B&E would be the correct answer
The correct answers are B & E.
typing passwd does not create a new user
in order to create new user account, must use "useradd"
The correct answers are B & E.
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.
B & E Passwrd is the primary purpose of the command.
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.
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.
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.
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.
C&E is the correct answer everywhere else
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.