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

  • (A) chmod
  • (B) chsh
  • (C) rmsh
  • (D) tchsh
πŸ’¬ Discuss
βœ… Correct Answer: (B) chsh
Explanation: 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}
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}

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
201
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Jatin Dubey
Publisher
πŸ“ˆ
91%
Success Rate