1.三权设置 查看账户情况
cd /home/
ll
2.设置审计账户
useradd shenji
修改密码 passwd+新密码
passwd shenji
3.设置管理账户
useradd guanli
passwd guanli
4. 查看用户
compgen -u
5.切换到root账户
su root
6.设置审计用户权限
vi /etc/sudoers
shenji ALL = (root) NOPASSWD: /usr/bin/cat , /usr/bin/less , /usr/bin/more , /usr/bin/tail , /usr/bin/head
标签:bin,shenji,centos,测评,passwd,虚拟机,账户,usr,root From: https://blog.csdn.net/weixin_62641226/article/details/137592851