centos添加/删除用户操作
-
进入root模式下
-
添加用户
adduser <username> -
给新用户添加密码
passwd <username>会显示
[root@VM_16_5_centos ~]# passwd test Changing password for user test. New password: Retype new password: passwd: all authentication tokens updated successfully. -
给新用户添加权限
vi /etc/sudoers#在底下添加 <username> ALL=(ALL) ALL -
删除用户
userdel -rf <username>










网友评论