linux add users, delete users

User-related

useradd xxx: Create a user xxx

passwd xxx: xxx user's password settings

chown -R xxx / aaa /: xxx permissions assigned to the user folder aaa

userdel xxx: xxx delete users

 

groupadd -r xxx: Create a group

groupdel xxx: Delete group

 

sudo Han Han Han: In the case of other users to execute commands as root

su Username: Switch user

 

Reference: https://blog.csdn.net/ayhan_huang/article/details/72676661

Guess you like

Origin www.cnblogs.com/Jasper-changing/p/11308283.html