Ubuntu12.04 use notes

Source: Internet
Author: User
Tags superuser permission
Ubuntu12.04 use the note sudoapt-getupdatesudoapt-getinstallxxxx to call up the terminal: 1, ctrl + alt + t. 2, dash search: gnome-terminal3, user file system directory ctrl + f search: gnome-terminal display desktop shortcut: win + ctrl + d cut... ubuntu12.04 use the note sudo apt-get update sudo apt-get install xxxx to call up the terminal: 1, ctrl + alt + t. 2. dash search: "gnome-terminal" 3. user file system directory ctrl + f search: "gnome-terminal" display desktop shortcuts: win + ctrl + d switch back to the classic desktop: sudo apt-get install gnome-session-fallback (click the icon in the upper right corner to select classic when logging on again) 4, sudo: /etc/sudoers is mode 0777, shocould be 0440 1. restart ubuntu, and then press shirft to enter the grub menu; 2. select recovery mode and press "e" to go to the editing page; resumecleandpkgfsckgrubnetrootrootxifx select root as the root user, that is, access the trial root user to recover the system and perform the superuser permission operation. After you press enter, you can see the familiar root @ TUZKI :~ # The command prompt is displayed. 4. set or revoke the permissions of the/etc/sudoers file. at this time, you can execute: chmod u-w/etc/sudoers to revoke the w permissions of the/etc/sudoers file. I directly added the root w permission and added the user shirdrn to the/etc/sudoers file. the following line is added under the line "root ALL = (ALL) ALL: shirdrn ALL = (ALL) ALL this makes the user's shirdrn a sudo group user and can execute super permissions. Log out of recovery mode and restart the system. after entering, you can use the shirdrn user to create the/home/shirdrn Directory: sudo mkdir/home/shirdrn because the shirdrn is already a user in the sudo group, run cd ~ Run pwd to view the/home/shirdrn Directory of the shirdrn user. 5, is not in the sudoers file. this incident will be reported superuser: sudo su-chmod u + w/etc/sudoers add the following line under root ALL = (ALL) ALL: userneme ALL = (ALL) ALL
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.