Created
April 3, 2019 18:24
-
-
Save adenosinew/8ae79eb2d11c4a40f6a4aa5bd129144b to your computer and use it in GitHub Desktop.
[Linux user management] Manage the user profiles in the Linux system #Linux #management
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List All available shells | |
cat /etc/shells | |
# Check the detail of user | |
less /etc/passwd | |
# e.g. Change the default shell of ubuntu | |
## 1. usermod | |
usermod --shell /bin/tcsh ubuntu | |
## 2. chsh | |
chsh -s /bin/tcsh ubuntu | |
## 3. edit the /etc/passwd file | |
vim /etc/passwd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment