解決無法切換root問題
發表於 : 2014-08-18, 02:31
輸入 sudo su 卻出現錯誤如下
User not in the sudoers file. This incident will be reported
原因是當下的使用者是新創立的
而一開始創立的使用者會預設成root
先用一開始創立的使用者切換成root
再加上權限語法如下
$USER 為使用者名稱
再用新的使用著重新登入用即可
http://superuser.com/questions/120340/u ... e-reported
User not in the sudoers file. This incident will be reported
原因是當下的使用者是新創立的
而一開始創立的使用者會預設成root
先用一開始創立的使用者切換成root
再加上權限語法如下
代碼: 選擇全部
su -c 'echo $USER ALL=(ALL)ALL >> /etc/sudoers'再用新的使用著重新登入用即可
http://superuser.com/questions/120340/u ... e-reported