使用者使用時的許可權問題 && 網絡卡圖標出現“device not managed”
(1)xxx is not in the sudoers file.This incident will be reported
儘量避免用#賬戶開發軟體,當我們新建了一個賬戶sw01,用這個sw01實行sudo操作時,會報如上錯誤。
a,首先用#賬戶新增許可權chmod u+w /etc/sudoers;
b,編輯sudoers檔案,vi /etc/sudoers,找到這行 root ALL=(ALL) ALL,在它下面新增xxx ALL=(ALL) ALL (這裡的xxx是你的使用者名稱)
c,撤銷sudoers檔案寫許可權,命令:chmod u-w /etc/sudoers(一定要撤銷許可權,否則有問題)
(2)su:authentication failure
碰到
$ su - root
Password:
su: Authentication failure
Sorry.
說明無root賬戶,那麼更新重設passwd
$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
========================= 網絡卡圖標出現“device not managed”============================
使用ubuntu的網路時,發現IP配好之後,網路用不了,網路圖示處提示device not managed,網路連線那個地方就一直顯示一個扇形。解決方法如下:
1. 編輯/etc/NetworkManager/NetworkManager.conf:
sudo vi /etc/NetworkManager/NetworkManager.conf
將其中的managed=false改為managed=true
2.重啟network-manager service:
sudo service network-manager restart