Simple Way to Run Programs As Root in Ubuntu 11.10 (Oneiric)
Sponsored Link
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.
/usr/bin/gksu
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
What about Alt+F2, “gksu firefox”, Enter?
+1
I absolutely agree, «gksu firefox» much more useful.
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.
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.
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.