LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   How can you launch Dolphin, as root, when you are logged in as a simple user? (http://www.linuxquestions.org/questions/slackware-14/how-can-you-launch-dolphin-as-root-when-you-are-logged-in-as-a-simple-user-903386/)

Robert.Thompson 09-16-2011 10:59 AM

How can you launch Dolphin, as root, when you are logged in as a simple user?
 
Hello:

If I am logged in as 'rob' how can I launch Dolphin with root privileges?

If I go to terminal and do su & password, can I launch Dolphin?

(Sorry if this is a real dumb question.)

Thanks,

rg3 09-16-2011 11:01 AM

If you're under KDE, the simplest method to launch the program as root with the appropriate environment is to use "kdesu /usr/bin/dolphin", from the Alt+F2 menu, for example.

SeRi@lDiE 09-16-2011 11:06 AM

Quote:

Originally Posted by Robert.Thompson (Post 4473699)
Hello:

If I am logged in as 'rob' how can I launch Dolphin with root privileges?

If I go to terminal and do su & password, can I launch Dolphin?

(Sorry if this is a real dumb question.)

Thanks,

Robert,

Why are you trying to run Dolphin as root?

Robert.Thompson 09-16-2011 11:38 AM

Quote:

Originally Posted by SeRi@lDiE (Post 4473705)
Robert,

Why are you trying to run Dolphin as root?

Hi SeRi@lDiE:

I don't think that you are going to like my answer...

I like to use Dolphin for my file administration functions, like copying files & directories or setting permissions. :o (I screw up less than when I try commands)


Thank you,

bgeddy 09-16-2011 11:51 AM

I asked this some time ago here which may well provide you with a workable answer - it did for me.

enorbet 09-16-2011 11:51 AM

Two Opportunities
 
Quote:

Originally Posted by Robert.Thompson (Post 4473699)
Hello:
If I am logged in as 'rob' how can I launch Dolphin with root privileges?

If I go to terminal and do su & password, can I launch Dolphin?

(Sorry if this is a real dumb question.)
Thanks,

Short answer = No. You can't just use "su". The default system will not allow you access to graphics w/o first doing something like "xhost +localhost" which is not generally a good idea. However in any DE that supports KDE you can, and in KDE you must use "kdesu <command>", in this case "kdesu dolphin". You do not need to enter the full path since it should certainly already be in your $PATH. Incidentally, 'dumb" is relative and in forums usually means something easily available from a cursory Google. This one I wouldn't call an easy one for search terms and can have important consequences, so it's probably good that you asked here.



Quote:

Originally Posted by SeRi@lDiE
Why are you trying to run Dolphin as root?

Not a bad question to see specifically what OP has in mind, but I wouldn't want a lot of people to assume this is a bad thing in and of itself. We are all creatures of habit and do mostly what we've become used to. For me, I came from DOS and although very comfortable in a text-only CLI screen, I distinctly remember the sense of revelation the first time I saw a File Manager which for me was PCTools' PCShell. I still love command line but there are some operations that are just faster or more comfortable from a File Manager. It also sticks in my mind how appalled and lost I felt on my first real GUI, IBM OS/2 2.0 which had no real File Manager and I bought one immediately.

When I first setup a Linux system I not only run File Managers as root (I also use Krusader) but I run KDE itself as root so I can setup an appearance that differs from User so I can know at a glance which one I am in. In over 11 years of Linux use this has never once created a problem for me on a Desktop/SOHO system. I suppose someone may tell me here of some issue I have never yet encountered, but for now, different strokes for different folks. :)

Woodsman 09-16-2011 11:52 AM

Quote:

If I am logged in as 'rob' how can I launch Dolphin with root privileges?
Use kdesu. You can create a shortcut with the exact command string for any app you want to open as root. Place the shortcut in your K-Menu, Quick Launch panel, desktop, wherever is convenient for you. The kdesu command will still require you to enter root's password.

Quote:

If I go to terminal and do su & password, can I launch Dolphin?
Yes, but a shortcut with kdesu is more convenient for most people. :)

Quote:

Why are you trying to run Dolphin as root?
Because he wants to. ;)

Robert.Thompson 09-16-2011 12:15 PM

Quote:

Originally Posted by rg3 (Post 4473701)
If you're under KDE, the simplest method to launch the program as root with the appropriate environment is to use "kdesu /usr/bin/dolphin", from the Alt+F2 menu, for example.

Thank you - it works just fine. :)

SeRi@lDiE 09-16-2011 12:18 PM

Quote:

Originally Posted by Woodsman (Post 4473743)
Because he wants to. ;)

Just thought I ask. I never seen anybody trying to run file managers as root. In 10ys at least I never had to :D ... nothing wrong with that though for each its own ;)

Robert.Thompson 09-16-2011 12:19 PM

You guys are great! :)

Thank you very much.

Marking as Solved.

ponce 09-16-2011 12:23 PM

Quote:

Originally Posted by SeRi@lDiE (Post 4473754)
I never seen anybody trying to run file managers as root.

should be no need to say that you probably will void your warranty doing like this :D

SeRi@lDiE 09-16-2011 12:33 PM

Quote:

Originally Posted by ponce (Post 4473758)
should be no need to say that you probably will void your warranty doing like this :D

lol

hughetorrance 09-17-2011 08:16 AM

I have found that if su does not work then su - will LOL

enorbet 09-17-2011 10:04 PM

Important!
 
Quote:

Originally Posted by hughetorrance (Post 4474361)
I have found that if su does not work then su - will LOL

Greetz
If one is running KDE then using a simple "su" to launch any graphic apps as root, according to the KDE site, is a very bad idea. There are support programs that must be run that "kdesu" accommodates that "su" simply does not. Additionally (and also a part of the support issue) "su" alone will cause a changing of permissions in dot-directories that will bork normal operation of KDE.

hughetorrance 09-18-2011 06:06 AM

enorbet...thanks for that...food for thought. ! I use KDE and xfce. I will use kdesu from now on when on KDE.


All times are GMT -5. The time now is 12:37 AM.