$su -


$visudo    


按a,进入append模式


your_user_name ALL=(ALL)  ALL

输入“:w”(保存文件)

输入“:q”(退出)

这样就把自己加入了sudo组,可以使用sudo命令了。