歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> Linux下is not in the sudoers file解決方法,sudoersfile

Linux下is not in the sudoers file解決方法,sudoersfile

日期:2017/3/3 17:40:41   编辑:學習Linux

Linux下is not in the sudoers file解決方法,sudoersfile

Linux下is not in the sudoers file解決方法,sudoersfile


最近在學習linux,在某個用戶(xxx)下使用sudo的時候,提示以下錯誤:xxx is not in the sudoers file. This incident will be reported。

百度了下,究其原因是用戶沒有加入到sudo的配置文件裡。

解決方法如下:

  1、切換到root用戶,運行visudo命令

  2、找到root ALL=(ALL) ALL,在下面添加一行 xxx ALL=(ALL) ALL 其中xxx是要加入的用戶名稱

http://xxxxxx/Linuxjc/1185898.html TechArticle

Copyright © Linux教程網 All Rights Reserved