LOGO

Run Ubuntu Gnome Apps as Root - How To

November 25, 2006
Run Ubuntu Gnome Apps as Root - How To

Running Programs with Root Privileges in Ubuntu

The Ubuntu Linux operating system operates desktop sessions under a standard user account. Consequently, all applications are initiated within the confines of this normal user context.

To execute a command-line program requiring superuser (root) permissions, the conventional method involves prefixing the command with "sudo". An example of this is demonstrated below:

sudo gedit filename.txt

Graphical Alternative: The 'gksu' Command

Ubuntu also provides a graphical alternative to the "sudo" command. This is often encountered when attempting to launch administrative tools.

Any program can be readily executed with root privileges by preceding the command with "gksu". Let's illustrate this by launching xterm as root.

First, activate the quick run dialog by pressing Alt+F2.

gksuxtermA password prompt will then appear. Enter your user password to proceed.

gksuxtermwinFollowing authentication, a terminal window will open, operating with root privileges.

This method offers a straightforward way to gain elevated permissions for specific applications within the Ubuntu environment.

#ubuntu#gnome#root#application#run as root#linux