LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   HOWTO Run as root in graphical environment (http://www.linuxquestions.org/questions/fedora-35/howto-run-as-root-in-graphical-environment-372715/)

fedix 10-13-2005 03:16 PM

HOWTO Run as root in graphical environment
 
I would like to know how to run a graphical application as root (for ex /applications/system tools/network tools)

Thanks

XavierP 10-13-2005 03:40 PM

Log in as root.

mebrelith 10-13-2005 03:54 PM

Hold everything, the title of your post got me off-guard once I read your post. So let me clarify... you are in a regular user account and want to execute a graphical app with root powers, right? If so there are several ways, if your are using KDE just run
Code:

kdesu appyouwannarun
or type from your console (or konsole again -if you use KDE)
Code:

su -c "appyouwannarun"
. Hope this helps.

EDIT: Avoid log in as root. :D :cool:

bobvh77 10-13-2005 10:17 PM

Quote:

Log in as root.
:D

fedix 10-14-2005 01:27 PM

Thanks mebrelith.

I also thought to log in as root is not the best way, Often I'm in my user account and need to run text editor as root. Running vi in terminal is to difficult for me, don't know the command structure of vi. But the graphical Text editor! As long as I'm root!

You said su -c "appyyouwannarun" but are the names that clear/ For example, su -c "smug menu editor" returned a com,mand not found.

reddazz 10-14-2005 02:30 PM

The command is just smeg, so you would do
Code:

$su -c "smeg"
I think XavierP meant that you can switch to root using su or su - whilst logged in as a normal user, so you won't be really starting a full graphical session for root.

XavierP 10-14-2005 03:18 PM

I was being facetious:)

fedix 10-14-2005 03:39 PM

Help!
 
Thanks everybody!


All times are GMT -5. The time now is 11:14 PM.