User and Group Management
useradd user1 |
create user1 user account |
passwd user1 |
create password for user1 user |
su |
switch user account |
exit |
logout user |
userdel user1 |
delete user account user1 |
usermod -l user2 user1 |
change user1 login name to user2 |
groupadd group1 |
add group group1 |
groupdel group1 |
delete group group1 |
gpasswd -a user1 group1 |
add single user user1 to group group1 |
gpasswd -M user1,user2 group1 |
add multiple users user1 user2 to group group1 |
gpasswd -d user1 group1 |
remove user user1 from group group1 |
gpasswd -A user1 group1 |
make user1 as admin of group1 |
Comments