A

Admin • 828.03K Points
Coach

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

  • (A) chmod
  • (B) chsh
  • (C) rmsh
  • (D) tchsh
  • Correct Answer - Option(B)
  • Views: 9
  • Filed under category Linux
  • Hashtags:

Explanation by: Admin
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.

Be the first to start discuss.