sparkuser is not in the sudoers file. This incident will be reported.

切换到root身份
$su -
(注意有- ,这和su是不同的,在用命令"su"的时候只是切换到root,但没有把root的环境变量传过去,还是当前用户的环境变量,用"su -"命令将环境变量也一起带过去,就象和root登录一样)

$visudo     //切记,此处没有vi和sudo之间没有空格,加入下面

sparkuser ALL=(ALL)  ALL

posted @ 2015-12-22 14:25  jeffery1010  Views(207)  Comments(0)    收藏  举报