创建用户
useradd daishu
修改密码
passwd daishu
添加sudoers编辑权限
chmod -v u+w /etc/sudoers
编辑sudoers
vi /etc/sudoers
在sudoers中添加管理员权限
daishu ALL=(ALL) ALL
还原sudoers编辑权限
chmod -v u-w /etc/sudoers
useradd daishu
passwd daishu
chmod -v u+w /etc/sudoers
vi /etc/sudoers
daishu ALL=(ALL) ALL
chmod -v u-w /etc/sudoers
已默默运行了
Made By astipsy.