Enable Root account in Ubuntu

There is a sudo command in Ubuntu that allows you to perform any administrative tasks in place of root account permissions . If you use another Linux favorite tool and perform any administrative tasks on it, you will feel a little forced by sudo, although you can do anything like an account. root with sudo. In this case you can enable the root account, disabled by default by Ubuntu.Note : This may cause security problems and is not recommended for new users .

There are two levels where you can enable root accounts - using the command line and using the Gnome desktop. To enable root account with the command line, run the following command:

# sudo passwd root

This command will immediately request to enter your password, and then re-enter the password again. Enter the correct password and the command line with the root account will be started.

To enable root accounts in Gnome, open the gdm.conf file, which is usually located at /etc/X11/gdm/gdm.conf and changes the AllowRoot condition to:

AllowRoot = true

Save this file. Exit Gnome and reopen it to activate your settings.

4 ★ | 1 Vote

May be interested

  • What's New in Ubuntu 21.10?What's New in Ubuntu 21.10?
    version 21.10 is the latest release of ubuntu and although canonical is turning more attention to the cloud and developers, ubuntu 'impish indri' still comes with some notable changes for those users use the ubuntu desktop every day.
  • How to Root an Android Device Without a PC Using FramarootHow to Root an Android Device Without a PC Using Framaroot
    to 'root' or enable superuser access on android devices, one needs to have a rooting software and a working pc. but what if you don't have a pc? how can you root your android device? it's simple and easy, actually; all you need is a...
  • How to enable Dynamic Transparency on UbuntuHow to enable Dynamic Transparency on Ubuntu
    fortunately, gnome extension developers have taken action to bring dynamic transparency back. so, having dynamic transparency on ubuntu 19.04 is easy.
  • What is the root directory?What is the root directory?
    the root directory, also called the root directory or sometimes is simply a root, of any partition is the highest directory in the hierarchy.
  • How to enable minimize on click in UbuntuHow to enable minimize on click in Ubuntu
    many ubuntu users who come to linux after switching from windows are having to find a way to make their new linux system minimize open windows when clicking on the taskbar icon or the corresponding toolbar.
  • How to Solve Incorrect Password ...Try Again Error in UbuntuHow to Solve Incorrect Password ...Try Again Error in Ubuntu
    this short article will show you how solve 'incorrect password ...try again' error in ubuntu 13.04 raring ringtail. you get this error mostly when you trying to run some software on your system that need root password. why is that? it's...
  • A comprehensive guide to root the Samsung Galaxy S7 or S7 EdgeA comprehensive guide to root the Samsung Galaxy S7 or S7 Edge
    you can use the method below to root galaxy s7 or galaxy s7 edge. however, this method does not allow you to flash custom recovery or custom roms like the root process on the exynos version, but it allows you to manipulate some other interesting experiences such as xposed installation to customize the stock rom. and even run some scripts to optimize and remove bloatware from your galaxy s7.
  • Is root Android phone still a must-do?Is root Android phone still a must-do?
    root android phones have become a part of smartphones since it became popular. with a rooted phone, you will have control over important system administration functions, allowing you to customize the device to a higher level.
  • How to enable private Threads accountHow to enable private Threads account
    if users do not want their threads account to be public so that everyone can see the content, they can switch to private threads account mode.
  • How to easily add and delete users on UbuntuHow to easily add and delete users on Ubuntu
    if you are sharing your ubuntu pc with other users, you should create an account for each user. that will allow each user to personalize their account the way they want.