At times where Linux provides a secure and healthy environment for users, it makes other things even more complicated and intricate. In tijden waarin Linux biedt een veilige en gezonde omgeving voor de gebruikers, andere dingen maakt het nog gecompliceerder en ingewikkeld. Despite being such a user-friendly operating system, it is not that easy to login to Ubuntu as a root user. Ondanks het feit dat een dergelijke gebruiksvriendelijk besturingssysteem, is het niet zo makkelijk om in te loggen om Ubuntu als root gebruiker.
Root user has all the administrator privileges so whenever you need to edit system files or configuration from within Gnome, you will feel the need to login to Ubuntu as a root user. Root-gebruiker heeft alle beheerdersrechten, zodat wanneer u maar wilt systeem configuratie bestanden of bewerken van binnen Gnome, zult u de behoefte voelen om in te loggen om Ubuntu als root gebruiker. But the question is here is "How to login to Ubuntu as a root user?" Maar de vraag is hier "Hoe in te loggen om Ubuntu als root gebruiker?"
Just follow the steps below: Volg de onderstaande stappen:
- Open the terminal and type: Open de terminal en type:
sudo passwd root - When you see the prompt that says "Enter new UNIX password", enter the password you want for the root user and confirm it. Wanneer u de prompt die zegt "Enter new UNIX wachtwoord", voer het wachtwoord dat u wilt voor de root gebruiker en te bevestigen.
- Type: Type:
sudo gedit /etc/X11/gdm/gdm.conf - Locate the line that says "AllowRoot=false". Zoek de regel die zegt "AllowRoot = false". Change it to "AllowRoot=true". Verander dit in "AllowRoot = true".
- Save the file Sla het bestand op
- Exit gedit, logout and then reboot. Exit gedit, uitloggen en dan opnieuw opstarten.
I used the same method when I wanted to login as root user to edit configuration files of my graphics card and everything worked great. Ik gebruikte dezelfde methode als ik wilde inloggen als root-gebruiker om configuratie bestanden bewerken van mijn grafische kaart en alles werkte prima. However the only issue in this case is that by logging to Ubuntu as root you are making your operating system more vulnerable. Maar het enige probleem in deze zaak is dat door in te loggen om Ubuntu als root u het maken van uw besturingssysteem kwetsbaarder.
For Ubuntu users it is recommended to use the account which they created on time of install and use the "sudo" command while in terminal to execute commands as root user. Voor de Ubuntu gebruikers is het aanbevolen om de rekening die zij gemaakt op moment van installeren en de "sudo gebruik", terwijl in opdracht terminal commando's als root gebruiker uit te voeren gebruiken.
















