Ubuntu Linux Enable root user login

Source: Internet
Author: User

Ubuntu Linux has a distinctive feature, that is, when you first use, you cannot log on as root to the system, why this? This will start with the installation of the system. For other Linux systems, the root password is typically set during the installation process so that users can log on to the root account or use the SU command to switch to Superuser status. By contrast, Ubuntu does not set a password for the root user and does not have the root account enabled when it is installed by default. The question is, what if you want to run the command as root?   It doesn't matter, we can use the sudo command to achieve this. sudo is a tool commonly used under Linux that allows ordinary users to use superuser privileges, which gives administrators a granular access control method through which people can access the system as both Superuser and other types of users.    The advantage of this is that administrators can grant certain types of superuser privileges without telling the user the root password, which is what many system administrators are dreaming of. Setting the allocation is simple, just set a root password for root: $ sudopasswd root will prompt you to enter the root password, enter the root code consecutively, and then use: $ su

Wk_ad_begin ({pid:21}); Wk_ad_after (, function () {$ ('. Ad-hidden '). Hide ();}, function () {$ ('. Ad-hidden '). Show ();});

You can switch to Super Admin user login!    1. After the terminal executes the SUDOPASSWD root command, you will be prompted to set a new root account password.    2. Click the Login Window menu, System-Preferences, and switch to the Security Options page and select the Allow local System Administrator Login option under it.    After performing these two steps, you can log in to the Ubuntu system using the root account.   If you want to disable the root account again, you can execute sudopasswd-l root.   SUDOPASSWD root to set the root user's password to open the root account, the lock account is sudopasswd-l, the open account is sudopasswd-u (need to be locked before, otherwise invalid). Method Two: Log in with the root account in Ubuntu in fact I personally think that is not much necessary, because when you need root permissions, the use of sudo can be. If you really need to enable the root account in Ubuntu, then do the following: 1. Reset the root password:

$SUDOPASSWD Root #按照提示输入两次新的密码 and confirm it.     2. Enable root User login: $sudovi/etc/gdm/gdm.conf # Open Gnome profile, enter in the last line mode: Allowroot return, find Allowroot=false, turn false to True, save and exit. Then, when you restart the system, you can log in with root. If you want to disable the root account, execute the following command: $SUDOPASSWD-L root in Ubuntu, the root account is disabled by default. In this case, if you want to use root permissions to do something, you will need sudo instructions.  For some friends, they may need to activate the root account in Ubuntu.  Fedora 10 on how to let root login system collection Fedora10 default is not allowed root account GUI login, the following is the solution. First enter the terminal with the user account, allow the root account to log in: First su then VI/ETC/PAM.D/GDM

Delete one of the rows auth required pam_succeed_if.so user! = root quiet and then Wq save and exit.   This allows the GUI to log on using root. You can also modify the/etc/gdm/contom.conf file, add the following lines, enable root automatic login [daemon] automaticloginenable=true automaticlogin=user_name Fedora 10 of the Network service does not start automatically, also need to modify Chkconfig--level network on If you use the GUI interface to modify the configuration, it seems that the modification program has a bug, the subnet mask is changed and then turned into a same,  Can be modified directly in the file. File location:/etc/sysconfig/network-scripts/ifcfg-eth0 can also: Power on the login system as root, the login mode is a graphical interface, prompting the user can not be verified, very puzzled, the password is right ah, entered several times still prompt "Unable to verify the user ”。 Had to use an ordinary user landed.

Open the terminal input Su, and then enter the root password to successfully go to the root user.  Set the boot mode to text mode, reboot into text mode, enter root and password, login success, it appears that in text mode can be logged in the root. Cannot log in to graphics mode as root, possibly for security reasons. Although the user can only log on to the graphical interface with ordinary users, but in the graphical interface mode, it is possible to change the root password. Select the system----and the root password, which pops up a dialog box to change the root secret. 28. Graphical Root login Fedora 11 is not allowed to log on as root in GDM and must be rooted in the terminal after logging in with a normal user. Then many users still want to log on as root. I don't approve of it, but I'll tell you what to do. Please do not forget that once you use root login will destroy your system, so please do not enter the following command, unless you know what you are doing. Open Terminal input: su-c ' GEDIT/ETC/PAM.D/GDM ' found the following line: Auth required pam_succeed_if.so user! = root quiet This line is commented out:

Ubuntu Linux Enable root user login

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.