切换到root用户
vi /etc/sudoers
找到
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
pacey ALL=(ALL) ALL //添加该行
vi /etc/sudoers
找到
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
pacey ALL=(ALL) ALL //添加该行