Home / the Internet / OS / How to log in linux as root

How to enter linux as root


How to enter linux as root</a>

Root is the superuser in * nix systems.

You can use this account toAdministrative operations on important OS files. The "root -> ordinary user" bundle was developed to facilitate computer management and ensure stability and security.

All actions that can be performed on system files can be performed only from root and are not accessible to the average user.



By default in Ubuntu the possibility of login underThe superuser account is disabled. To enable root, you need to know the password that is set during the installation of the system. The password can always be changed by the command through the "Terminal" (Menu - Programs - Standart): sudo passwd root
Sudo allows you to use rightsSuperuser for the next request, and passwd changes the password for the selected user, in this case root. After entering the command, enter your old password and then the new one.


Enable the Local Logon featurePrivileged user through the graphical shell into the system. To do this, go to the "System" - "Administration" - "Login Window" - "Security", and then select the "Allow local sign-on ..." option. Restart the computer. Now you can log in as root.


To execute commands from root via the "Terminal" on Fedora and Mandriva systems, the su prefix is ​​used. Open the gdm file:

Gedit /etc/pam.d/gdm
And comment out the line "auth required pam_succeed ..." using the # sign. After that, reboot and try to login as a superuser from the account selection window.


If you have a KDE desktop, thenEdit the kdmrc file, which is located in the / usr / share / config / kdm folder. Find the AllowRootLogin line and change its value to True, then save the changes and restart the user session using the appropriate menu item.

How to enter linux as root Was last modified: June 20th, 2017 By Tiyhyozw
It is main inner container footer text