Home / Programming MCQs / Linux MCQs / Question

J

Jatin Dubey • 3.78K Points
Extraordinary

Q. A user can change the default shell connection using ______?

(A) chmod
(B) chsh
(C) rmsh
(D) tchsh
Explanation by: Jatin Dubey
You don’t need to modify the /etc/passwd file to change your shell. You need to use the “chsh” command. It changes the user’s login shell. This determines the users initial login name. A normal user can only change the login shell for his own account, the super user (root), can change the login shell for any account. Here is the syntax of the chsh command:

$ chsh -s {shell_name} {user_name}

You must be Logged in to update hint/solution

Discusssion

Login to discuss.