To revert shell changes for a user back to the default shell (for example, /bin/sh), you can use the usermod command. Here’s how to do it:
- Open a terminal.
- Run the following command, replacing
usernamewith the actual username (e.g.,joker):
sudo usermod -s /bin/sh username
For example, to revert the shell for the user 'joker':
sudo usermod -s /bin/sh joker
- After executing this command, the default shell for the user will be changed back to
/bin/sh.
You can verify the change by checking the user's information with the following command:
grep username /etc/passwd
This will display the user's entry, including the current default shell.
