Best Answer: How Do I Change the User Shell in Linux?
Contents How Do You Change the Shell of a User in Linux? Now Let’s Discuss Three Different Ways to Change Linux User Shell. Usermod Utility. Usermod Is a...
Contents
How do you change the shell of a user in Linux?
Now let’s discuss three different ways to change Linux user shell.
- usermod Utility. usermod is a utility for modifying a user’s account details, stored in the /etc/passwd file and the -s or –shell option is used to change the user’s login shell. …
- chsh Utility. …
- Change User Shell in /etc/passwd File.
18 сент. 2017 г.
How do I know my login shell Linux?
cat /etc/shells – List pathnames of valid login shells currently installed. grep “^$USER” /etc/passwd – Print the default shell name. The default shell runs when you open a terminal window. chsh -s /bin/ksh – Change the shell used from /bin/bash (default) to /bin/ksh for your account.