添加用户 用户名以newname为例子 [root@localhost /]useradd newname #创建用户 haha是用户名 [root@localhost /]passwd newname #为该用户设置密码 删除用户 [root@localhost /]# userdel -r newname 查看用户列表 [root@localhost /]# cat /etc/passwd