將ubuntu 14.04升級到16.04後,在supermap帳號(當前用戶名)下 sudo 時出現錯誤:ubuntu
Ubuntu 用戶名 不在 sudoers文件中,此事將被報告。
但是之前使用的好好的......編輯器
A、經過編輯器來打開/etc/sudoers,或者直接使用命令visudo來搞定這件事情。code
# 進入超級用戶 su # 打開文件編輯 gedit /etc/sudoers
B、打開sudoers後,像以下那樣加上本身的賬號,保存後就能夠了。ci
# User privilege specification root ALL=(ALL:ALL) ALL supermap ALL=(ALL:ALL) ALL