How to enter the ROOT account in UBUNTU

Source: Internet
Author: User

Description
Allow other users to run sudo
Benefits of using sudo
Insufficient use of sudo
Misunderstanding
Go back to the traditional root account
Activate the root account
Shield root accounts
Ask sudo for the root password
Activate graphical root Login
In Gnome
In KDE
From the Linux Console
 


In Linux (and Common Unix), the superuser name is root. the root account for Windows is Administrator. super Users can do anything, so super users in daily work become very dangerous. you can run an incorrect command to destroy the entire system. theoretically, the user you run should only have the permissions required for tasks on hand. in some cases, it needs root, but most events are normal users.
 
The Ubuntu root account is locked by default. this means that you cannot Log On As root or use su. on the contrary, the installer will establish and set sudo during the installation process to allow users to run all management commands.
 
In the terminal, you can use sudo for commands requiring root permissions. the program on the menu will use a graphical sudo to prompt you for a password. when sudo asks for a password, it requires your user password, which means no root password is required.
 
 
Description
The password is saved for 15 minutes by default. You need to enter your password again later than this time.
However, when you enter your password, it will not be displayed on the screen, or even a row of asterisks (******). However, this is normal!
 
Use sudo to run the graphical setting tool and run the program through the menu.
 
Generally, a user uses sudo to run a program, such as running gedit. press Alt + F2 and enter gksudo gedit.
 
For Kubuntu users, use kdesu instead of gksudo.
 
Ubuntu 5.10 (Breezy Badger) user, to Applications --> System Tools --> Run as different user.
 
Run sudo on the command line and add sudo before the command as follows:
 
Example #1
 
Sudo chown bob: bob/home/bob /*
Example #2
 
Sudo/etc/init. d/networking restart
Do not use sudo to run a graphics program. you should use gksudo or kdesu to run these programs. Otherwise, you may fail to log on again. if the following error report is prompted during login: "Unable to read ICE authority file", use the terminal that fails to log on and run the following command to replace the following user with your account name.
 
 
Rm/home/*/. {ICE, X} authority
Start a root shell (for example, a window where you can allow the root command:
 
 
Sudo-I
 
Allow other users to run sudo
Add a new user to sudo and open the Users and Groups tool from System --> Administration menu. click the user and continue to open properties. select the User Privileges page. on this page, find Executing system administration tasks and select.
 
  On the terminal, you can use sudo adduser $ user admin. Here you replace $ user with the user name.
 
 
Benefits of using sudo
The benefits of shielding root by default include the following:
 
Few questions can be asked during installation
Users do not need to remember additional passwords because they may easily forget them.
Interactive Default Login avoids "I can do anything"-you will be prompted to enter a password before modification, so that you can consider the result.
 
Sudo adds a log (in/var/log/auth. log ). if you are confused, you can always go back and see the commands that have been run. this is also conducive to review.
 
When trying to use brute force cracking to access your system, all the hackers will know that there is an account named root and will try it for the first time. They do not know what the usernames of other users are.
 
Users can be added to or deleted from user groups in the short term or long term, without endangering the root account.
 
Sudo can set more detailed security rules

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.