1. sudo chmod u+w /etc/sudoers
    1. sudo vi /etc/sudoers
    2. 找到:
    3. # root and users in group wheel can run anything on any machine as any user
    4. root ALL = (ALL) ALL
    5. %admin ALL = (ALL) ALL
    6. 修改为:
    7. # root and users in group wheel can run anything on any machine as any user
    8. #root ALL = (ALL) ALL
    9. #%admin ALL = (ALL) ALL
    10. root ALL = (ALL) NOPASSWD: NOPASSWD: ALL
    11. %admin ALL = (ALL) NOPASSWD: NOPASSWD: ALL