为普通用户添加root
方法1
su
usermod -aG wheel username
# ubuntu,debian系列
usermod -aG sudo username方法2
su
vim /etc/sudoers
# User privilege specification
root ALL=(ALL:ALL) ALL
# 添加下面这一条
username ALL=(ALL) ALLsu
usermod -aG wheel username
# ubuntu,debian系列
usermod -aG sudo usernamesu
vim /etc/sudoers
# User privilege specification
root ALL=(ALL:ALL) ALL
# 添加下面这一条
username ALL=(ALL) ALL