LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-16-2011, 09:59 AM   #1
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Rep: Reputation: 48
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,
 
Old 09-16-2011, 10:01 AM   #2
rg3
Member
 
Registered: Jul 2007
Distribution: Slackware Linux
Posts: 508

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 09-16-2011, 10:06 AM   #3
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 538
Blog Entries: 7

Rep: Reputation: 54
Quote:
Originally Posted by Robert.Thompson View Post
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?
 
Old 09-16-2011, 10:38 AM   #4
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by SeRi@lDiE View Post
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. (I screw up less than when I try commands)


Thank you,

Last edited by Robert.Thompson; 09-16-2011 at 11:15 AM.
 
Old 09-16-2011, 10:51 AM   #5
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
I asked this some time ago here which may well provide you with a workable answer - it did for me.
 
1 members found this post helpful.
Old 09-16-2011, 10:51 AM   #6
enorbet
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware 14 is Main OpSys on Main PC, 2ndary are OpenSuSe 13 and SolydK
Posts: 691

Rep: Reputation: 286Reputation: 286Reputation: 286
Two Opportunities

Quote:
Originally Posted by Robert.Thompson View Post
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.
 
1 members found this post helpful.
Old 09-16-2011, 10:52 AM   #7
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
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.
 
1 members found this post helpful.
Old 09-16-2011, 11:15 AM   #8
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by rg3 View Post
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.
 
Old 09-16-2011, 11:18 AM   #9
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 538
Blog Entries: 7

Rep: Reputation: 54
Quote:
Originally Posted by Woodsman View Post
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 ... nothing wrong with that though for each its own

Last edited by SeRi@lDiE; 09-16-2011 at 11:20 AM.
 
Old 09-16-2011, 11:19 AM   #10
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 48
You guys are great!

Thank you very much.

Marking as Solved.
 
Old 09-16-2011, 11:23 AM   #11
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Quote:
Originally Posted by SeRi@lDiE View Post
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
 
Old 09-16-2011, 11:33 AM   #12
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 538
Blog Entries: 7

Rep: Reputation: 54
Quote:
Originally Posted by ponce View Post
should be no need to say that you probably will void your warranty doing like this
lol
 
Old 09-17-2011, 07:16 AM   #13
hughetorrance
Member
 
Registered: Aug 2009
Location: London North West
Distribution: x86_64 Slack 13.37 current : +others
Posts: 459

Rep: Reputation: 59
I have found that if su does not work then su - will LOL
 
Old 09-17-2011, 09:04 PM   #14
enorbet
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware 14 is Main OpSys on Main PC, 2ndary are OpenSuSe 13 and SolydK
Posts: 691

Rep: Reputation: 286Reputation: 286Reputation: 286
Important!

Quote:
Originally Posted by hughetorrance View Post
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.
 
Old 09-18-2011, 05:06 AM   #15
hughetorrance
Member
 
Registered: Aug 2009
Location: London North West
Distribution: x86_64 Slack 13.37 current : +others
Posts: 459

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with User,Pwd to use browser. I do have root access with Dolphin su ozstar Linux - Newbie 4 06-08-2010 05:25 AM
temporary root permissions while logged in as user? Ultrus Suse/Novell 4 04-25-2007 09:59 PM
Audio when logged in as root, not when normal user? LDJ Linux - Newbie 2 01-12-2007 05:03 PM
firebird flash problem when logged in as user (but not as root) thegreatgatsby Linux - Software 3 11-20-2003 08:30 AM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 08:34 PM


All times are GMT -5. The time now is 09:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration