CompTIA
XK0-006 · Question #16
An administrator must secure an account for a user who is going on extended leave. Which of the following steps should the administrator take? (Choose two).
The correct answer is D. Run the command passwd -l user. F. Change the user's shell to /sbin/nologin. passwd -l user locks the user’s account by disabling the password, preventing logins. Change the user’s shell to /sbin/nologin ensures the account cannot be used for interactive logins, further securing it.
Services and User Management
Question
An administrator must secure an account for a user who is going on extended leave. Which of the following steps should the administrator take? (Choose two).
Options
- ASet the user's files to immutable.
- BInstruct the user to log in once per week.
- CDelete the user's /home folder.
- DRun the command passwd -l user.
- EChange the date on the /home folder to that of the expected return date.
- FChange the user's shell to /sbin/nologin.
How the community answered
(17 responses)- B6% (1)
- C6% (1)
- D71% (12)
- E18% (3)
Explanation
passwd -l user locks the user’s account by disabling the password, preventing logins. Change the user’s shell to /sbin/nologin ensures the account cannot be used for interactive logins, further securing it.
Topics
#user account locking#passwd#nologin#account management
Community Discussion
No community discussion yet for this question.