Simple Way to Run Programs As Root in Ubuntu 11.10 (Oneiric)

Sponsored Link
If you want to run any application as root this is simpleway to do this.This is very useful for all user if they want to run specific application as root.

First you need to install gnome-panel package using the following command from your terminal

sudo apt-get install --no-install-recommends gnome-panel

Create new launcher

Open the terminal and run the following command

gnome-desktop-item-edit ~/Desktop/ --create-new

This will open create laucher dialog box here you can give a suitable name for the launcher.In the Command field , type in the command as follows Then, click OK to create the desktop launcher.


Once created you shold see similar to the following icon

If you want to run firefox application as root you need to double click on this shortcut and enter firefox and click ok

Enter your root password to open the requested application

Sponsored Link

You may also like...

5 Responses

  1. Markus says:

    What about Alt+F2, “gksu firefox”, Enter?

  2. ZHart says:

    I absolutely agree, «gksu firefox» much more useful.

  3. myname says:

    so, I know there are times where folks new to linux may want to run some gui as root that does some amount of system administration. I get that.

    …but I think it’s a pretty bad example to splash firefox in there. I cannot for the life of me think of a good reason to run a web browser as root. And I can think of a zillion bad reasons to do so.

  4. linuxadmin says:

    Any application in Ubuntu that requires you to be root (Synaptic Package Manager for example) asks you to authenticate when you run it anyway, so there is no need for this.

    I could perhaps understand running Nautilus as root from time to time, but most applications never need root access. And running an Internet facing application like Firefox as root is just stupid.

    I would suggest that any noobs out there ignore this article.

  5. Dragnarok says:

    Well i have to say thanks for this article.
    It helped me a lot to run the application gSTM (SSH Tunel Manager) as a root.

    Without the root access i was unable to start my setup.

    I was getting the error — Privileged ports can only be forwarded by root.

    With this procedure i am now able to make it run.

Leave a Reply

Your email address will not be published. Required fields are marked *