1、切换超级用户
su - root
2、编辑配置文件
vim /etc/sudoers
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
username ALL=(ALL) ALL
1、切换超级用户
su - root
2、编辑配置文件
vim /etc/sudoers
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
username ALL=(ALL) ALL