Question 61 · 300 in bank
Joe, a user, is unable to log in to the Linux system. Given the following output:
Which of the following commands would resolve the issue?
Show answer
Answer: A
Explanation
The command usermod -s /bin/bash joe changes the login shell of the user named "joe" to "/bin/bash". Explanation: usermod is a command in Linux used to modify user account details. -s /bin/bash is an option used with the usermod command to specify the new login shell for the user. In this case, the login shell is changed to "/bin/bash". "joe" is the username of the user whose account is being modified. Changing the login shell of a user can be useful in cases where a different shell is required for a particular user. In this case, the user "joe" will now use the Bash shell as their default shell when they log in.
Source: Adapted from community discussion — linux_admin