sudo vim /etc/sudoers
修改文件如下:
代碼如下復制代碼
# User privilege specification
root ALL=(ALL) ALL
user1
ALL=(ALL) ALL
保存退出,
user1
用戶就擁有了root權限。