Linux:Centos/用户

来自康健生活

创建一个 kangkk 用户

info

进入 root 权限

/home/kangkk
sudo -i

或者。

/home/kangkk
sudo su

other

add user.

/home/kangkk
adduser kangkk

change user password.

/home/kangkk
passwd kangkk

add new user's root role

/home/kangkk
whereis sudoers
/home/kangkk
chmod -v u+w /etc/sudoers
vi /etc/sudoers
sudoers
...
root ALL=(ALL) ALL
admin ALL=(ALL) ALL
...
/home/kangkk
chmod -v u-w /etc/sudoers