Ask Your Question

How to install gnomesu command

asked 2016-04-11 13:32:45 -0500

Pharmathan gravatar image

In some distributions I was familiar with, I could type gnomesu application and run it as root. How can I install/use this command on fedora 23? Thank you

edit retag flag offensive close merge delete


I don't get the need for that. Can someone please explain why not just execute any Gnome app using sudo application? I do sudo nautilus often when I need a file manager with root rights...

Or if you don't want to type a password every time, just get a root console (su -) and start any application from there in a root environment...

florian gravatar imageflorian ( 2016-04-11 15:02:35 -0500 )edit

You can create a shell script containing gnomesu or, on Fedora, beesu and launch it from an icon on your desktop or taskbar without needing a terminal as you would with sudo. As an example, a script containing beesu - nautilus will give you a nautilus window with root access after you've given the correct password and many people find that a cleaner way to do things.

sideburns gravatar imagesideburns ( 2016-04-11 15:14:10 -0500 )edit

OK, I agree, for using it in a script it can be helpful...or if you don't want to show the terminal window where the password is typed...

florian gravatar imageflorian ( 2016-04-11 15:34:29 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-04-11 14:50:58 -0500

sideburns gravatar image

Welcome to ask.fedora. I don't use Gnome, but from what I can tell, Fedora doesn't use that program. To get what you want, run this: sudo dnf install beesu and use that instead. Do be sure to Read The Fine Manual first with man beesu because there are command line switches that can make things easier in some cases and a conf file that you can edit if you wish to limit what commands it will accept.

edit flag offensive delete link more


Thank you, I will try this and install the package. But is it easy to tell me whether using sudo application is "bad" or not? (for example sudo nautilus)

Pharmathan gravatar imagePharmathan ( 2016-04-11 15:03:14 -0500 )edit

Btw installed beesu. It's good!

Pharmathan gravatar imagePharmathan ( 2016-04-11 15:14:21 -0500 )edit

Running any program as root may be a bad idea, depending on what you plan to do and how well you understand the risks. Running nautilus as root can be very dangerous because it's easy to delete more files than you realized, or do other major damage to your system, but there are times that it's the best way to get something done. (This is why root can't log into the GUI by default; it's too easy to trash things.) If you do set this up, make it a habit of thinking twice before you use it to make sure it's needed.

sideburns gravatar imagesideburns ( 2016-04-11 15:19:37 -0500 )edit

Yes you are right but running nautilus or gedit (what do you use? Let's say dolphin and kwrite for KDE for example?) is necessary when installing themes via the GUI or installing bumblebee (that needs some extra work) or creating a .desktop file for a program :)

Pharmathan gravatar imagePharmathan ( 2016-04-11 15:30:48 -0500 )edit

I use Xfce, with thunar and leafpad and have done so for at least five years. I've never needed root access to create or edit a .desktop file and yumex prompts me for the root password already. If the program doesn't create its own icon, I can always right-click on the desktop, create a launcher and mark it executable by me without root.

sideburns gravatar imagesideburns ( 2016-04-11 15:53:47 -0500 )edit

Question Tools

1 follower


Asked: 2016-04-11 13:32:27 -0500

Seen: 1,654 times

Last updated: Apr 11 '16