Root privileges are administrator privileges on Linux. In case you want to open any program with the root privileges on the Linux. Because some of the operations are not possible for the simple users so the program might require root privileges to perform some advanced tasks. There are different simple and easy ways to run programs with root access.
In case you are using Linux with disabled root access, you need to first enable the root access by following a few simple steps.
Enabling the Root Account on Linux
To enable the Root Account, you need to open the terminal window using Ctrl + Shift + T or Ctrl + Alt + T. Now use sudo -s command to log in as superuser.
Type “passwd” to force a reset on the Root account password on the system.
Now set a new password for the Linux root account. Make sure that you can remember the password and the password is secure. Now you will be able to access the root account.
Opening programs with Root Access
The best way to access the root account to launch the programs with root privileges is to log in to the root in the terminal and execute the program by its name. Get root access with su command.
Now you can start the programs with root access. In case you want to access the programs with Gnome file manager, you will need to use nautilus command.
Make sure that you are login with the root before starting the app with the program name. This terminal does not work all the time. If the terminal fails to open the command
Opening Programs with Root using Pkexec
Most of the Linux operating systems requires a password prompt to run programs as super user. The Pkexec tool makes it possible to run the programs on the desktop with root access. All you need is to press Alt + F2 from the keyboard that will start a quick launch window in desktop environment.
In the quick-launch window, open the desktop and type plexec command with the name of the program to launch.
If you like to launch Gparted partition manager as superuser, you will need to type
The pkexec tool also runs in the terminal, so in case you don’t want to use the quick launch bar on the Linux. You need to launch the terminal with Ctrl + Shift + T or Ctrl + Alt + T and type
You may also like to know HOW TO CHANGE THE HOSTNAME OF THE LINUX COMPUTER