xxx is not in the sudoers file.This incident will be reported.的解決方法

1.centos系統切換到root用戶下:輸入su,輸入密碼(密碼是看不見的);切換到普通用戶下:su 用戶名。centos 2.添加sudo文件的寫權限,命令是: chmod u+w /etc/sudoers 3.編輯sudoers文件 vi /etc/sudoers 找到這行 root ALL=(ALL) ALL,在他下面添加xxx ALL=(ALL) ALL (這裏的xxx是你的用戶名) p
相關文章
相關標籤/搜索