Last active
June 3, 2018 13:24
-
-
Save popucui/6b3a0dcbb960c0bf071273d16c89cdce to your computer and use it in GitHub Desktop.
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
# add user "hwang" | |
# this method is old way on Ubuntu nowadays, for modern way of doing this, should use "adduser" | |
sudo useradd hwang -m -b /data/home -s /bin/bash | |
# add to group | |
sudo usermod -g dev hwang # For primary group "dev" | |
sudo usermod -a -G admin hwang # For secondary group "admin" | |
#add new user named "zhangshan" | |
sudo useradd zhangsan group001 | |
#change password | |
sudo passwd zhangshan | |
## add/delete user from SGE user list | |
#add "zhangshan" to a userlist "arusers" | |
qconf -au zhangshan arusers | |
#show userlist "arusers" member to make sure previous set as expected | |
qconf -su arusers | |
#delete a user from userlist | |
qconf -du zhangshan arusers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment