ubuntu12.04使用筆記

來源:互聯網
上載者:User

ubuntu12.04使用筆記 sudo apt-get  update  sudo apt-get install xxxx調出終端: 1,ctrl+alt+t。 2,dash 搜尋:“gnome-terminal” 3,使用者檔案系統目錄ctrl+f搜尋:“gnome-terminal” 顯示案頭捷徑:win+ctrl+d 切換回經典案頭:sudo apt-get install gnome-session-fallback(重新登入時點擊右上方表徵圖選擇classic) 4,sudo: /etc/sudoers is mode 0777, should be 0440 1、重啟ubuntu,隨即長按shirft進入grub菜單;2、選擇recovery mode,按"e"鍵進入編輯頁面; resumecleandpkgfsckgrubnetrootrootxifx選擇root選擇root,也就是進入試用root使用者進行系統復原,在裡面可以執行超級使用者權限的操作。斷行符號後,可以看到熟悉的root@TUZKI:~#命令提示字元了。4、設定或者撤銷/etc/sudoers檔案的許可權此時,你可以執行:chmod u-w /etc/sudoers撤銷對/etc/sudoers檔案的w許可權。我是直接增加了root的w許可權,直接將使用者shirdrn添加到了/etc/sudoers檔案中,在root    ALL=(ALL)    ALL這行下面增加了如下一行:shirdrn    ALL=(ALL)    ALL這就使得使用者shirdrn成了sudo組的使用者了,可以執行超級許可權了。退出recovery mode,重新啟動系統,進入後,可以使用shirdrn使用者建立/home/shirdrn目錄了:sudo mkdir /home/shirdrn因為shirdrn已經是sudo組的使用者了,執行cd ~再執行pwd可以看到shirdrn使用者的/home/shirdrn目錄了。5,is not in the sudoers file. This incident will be reported超級使用者:sudo su   - chmod  u+w /etc/sudoers 在root    ALL=(ALL)    ALL這行下面增加如下一行:userneme    ALL=(ALL)    ALL 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.