Open chenshenhai opened 6 years ago
# 新增用户 adduser newuser # 新用户密码 passwd newuser
/etc/sudoers
newuser ALL=(ALL) ALL
## Allow root to run any commands anywhere root ALL=(ALL) ALL newuser ALL=(ALL) ALL
su -
初始化新用户和密码
赋予新用户root权限
/etc/sudoers
newuser ALL=(ALL) ALL
su -