码迷,mamicode.com
首页 > 其他好文 > 详细

Error prompt:“xxx is not in the sudoers file”----Solution

时间:2014-07-06 21:39:36      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:style   strong   io   line   new   amp   

//Situation
  System prompts "xxx is not in the sudoers file"(xxx equals the user name) while executing command "sudo": 
   

    sudo -i

     Password:

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

 

 

//Analysis

  The current account must have no rights to execute "sudo".


//Solution
  To fix the problem, add the current account into the file  "/etc/sudoers":
    1. Switch to supervisor:    su
    2. Open the file "sudoers" with vi editor:    vi /etc/sudoers

    3. Add the account:    press "i" to edit; find line "root    ALL=(ALL)    ALL"; new a line "xxx    ALL=(ALL)    ALL" below it; save&quit with the         command "wq!".


//Problem solved.

Error prompt:“xxx is not in the sudoers file”----Solution,布布扣,bubuko.com

Error prompt:“xxx is not in the sudoers file”----Solution

标签:style   strong   io   line   new   amp   

原文地址:http://www.cnblogs.com/tyingk/p/3824607.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!