添加用户:
adduser zhao
passwd zhao
whereis sudoers
chmod -v u+w /etc/sudoers
vi /etc/sudoers
在root ALL=(ALL)ALL下边加一行
admin ALL=(ALL)ALL
保存退出
ssh设置
vi /etc/ssh/sshd_config
PermitRootLogin no
systemctl restart sshd.service
添加用户:
adduser zhao
passwd zhao
whereis sudoers
chmod -v u+w /etc/sudoers
vi /etc/sudoers
在root ALL=(ALL)ALL下边加一行
admin ALL=(ALL)ALL
保存退出
ssh设置
vi /etc/ssh/sshd_config
PermitRootLogin no
systemctl restart sshd.service