Linux:Centos/用户

来自康健生活
Kangkk​(留言 | 贡献)2022年1月30日 (日) 05:57的版本 (→info)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

创建一个 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