Skip to content

Instantly share code, notes, and snippets.

@adenosinew
Created April 3, 2019 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adenosinew/8ae79eb2d11c4a40f6a4aa5bd129144b to your computer and use it in GitHub Desktop.
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
# 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