Last active
November 29, 2019 22:34
-
-
Save soundslikeinfo/1294965 to your computer and use it in GitHub Desktop.
[su shell and usermod] #LegacyGISTS #shell
This file contains hidden or 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
su - # switch user (root) | |
usermod -d /home/path/ {user} # set the user's home path | |
usermod {user} -s /bin/shell # set the user's shell | |
grep {user} /etc/passwd # find a user's id,group,access |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment