为普通用户添加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) ALL