exam questions

Exam 010-160 All Questions

View all questions & answers for the 010-160 exam

Exam 010-160 topic 1 question 54 discussion

Actual exam question from LPI's 010-160
Question #: 54
Topic #: 1
[All 010-160 Questions]

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

  • A. Change a user's username.
  • B. Change a user's password.
  • C. Create a new user account.
  • D. Create a new user group.
  • E. Lock a user account.
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
goblue
Highly Voted 4 years ago
The correct answers are B & E.
upvoted 31 times
...
JCoons03
Highly Voted 4 years ago
This cant be right. Its primary function is to change the users password "B"
upvoted 11 times
...
AndrewGrasso
Most Recent 8 months, 4 weeks ago
Selected Answer: BE
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.
upvoted 2 times
...
NetTech
1 year, 7 months ago
Selected Answer: BE
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.
upvoted 1 times
...
Ness12
1 year, 8 months ago
Selected Answer: BE
typing passwd does not create a new user
upvoted 3 times
...
Marisasa58
1 year, 9 months ago
C&E is the correct answer everywhere else
upvoted 1 times
...
hughesd010
1 year, 11 months ago
Selected Answer: BE
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.
upvoted 1 times
...
hughesd010
1 year, 11 months ago
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.
upvoted 1 times
geocis
4 months, 3 weeks ago
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.
upvoted 2 times
JarnBarn
4 months, 1 week ago
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.
upvoted 1 times
...
...
...
JamiB1979
2 years ago
Selected Answer: CE
B & E Passwrd is the primary purpose of the command.
upvoted 1 times
...
Miragico
2 years, 4 months ago
Selected Answer: BE
The correct answers are B & E.
upvoted 2 times
...
shosha
2 years, 6 months ago
Selected Answer: BE
The correct answers are B & E.
upvoted 3 times
...
GeeGeeaR
3 years, 2 months ago
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/
upvoted 4 times
...
Allan85
3 years, 5 months ago
B&E would be the correct answer
upvoted 3 times
...
cyberchick
3 years, 6 months ago
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.
upvoted 3 times
...
h0st
3 years, 6 months ago
B&C are the correct aswers
upvoted 3 times
...
MIU
3 years, 8 months ago
The correct answers are B & E. These are mainly used by this command, while C can be by "useradd" command.
upvoted 3 times
...
reyman07
3 years, 9 months ago
in order to create new user account, must use "useradd"
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago