ubuntu创建超级用户
在root用户下执行:
sudo useradd -r -m -s /bin/bash super_user sudo passwd super_user chmod u+w /etc/sudoers vim /etc/sudoers
在/etc/sudoers文件中添加super_user如下(添加:super_user ALL=(ALL:ALL) ALL ):
chmod u-w /etc/sudoers
黄世宇/Shiyu Huang's Personal Page:https://huangshiyu13.github.io/