is not in the sudoers file

      使用sudo的時候,提示以下錯誤:xxx is not in the sudoers file. This incident will be reported。


     解決方法如下:

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

或打開/etc/sudoers編輯一下內容。

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章