1.给一般用户添加sudo权限 visudo -f /etc/sudoers 修改内容为 user_name ALL=(ALL) ALL user_name ALL=(ALL)NOPASSWD: ALL