LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-28-2007, 01:29 PM   #1
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,642

Rep: Reputation: 67
Can't run Konqueror as SU


Can someone tell me what's happening here.
$ sudo su -
root@mickey-desktop:~# konqueror
konqueror: cannot connect to X server
root@mickey-desktop:~# kdesu konqueror
kdesu: cannot connect to X server
root@mickey-desktop:~# sudo konqueror
konqueror: cannot connect to X server

Please don't suggest to use some other method for editing as SU.
There is no easier method than using a filemanager to edit in /root.
 
Old 10-28-2007, 01:52 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 64
Normally under KDE there is a menu item called File Manager ( Super User).
It is usually under system. See if you have it some where.

If not create a new menu item and the command for it is
konqueror --profile filemanagement
Then lower done Run as a different user enter root

Now if I try sudo su - it does not work since default sudoers file does not allow su usuage. You don't need to use sudo to use the su command. This might causing the problem as well.

Brian
 
Old 10-28-2007, 10:12 PM   #3
bob_dobbs
LQ Newbie
 
Registered: Oct 2007
Location: Berlin Germany
Distribution: Sidux, Debian
Posts: 12

Rep: Reputation: 0
KDE Application as root

kdesu must be run as the user who has the session active.

okiegerm@thunkerchen:~$ kdesu konqueror

Note: $ denotes NON-root user

A pop-up will ask for the root password and then start the program with escalated priviledge
 
Old 10-29-2007, 12:50 PM   #4
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,642

Original Poster
Rep: Reputation: 67
I tryed
konqueror --profile filemanagement and set it up in Menu editor and check
box to "Run as different user"
and it run and times out, doesn't give the window for typing in SU password.

I also tryed from command line to run "kdesu konqueror" and I get the error below.
There is only one user on this box, other than Root, mickey/Group uid is 1000


passprompt


Error: "/var/tmp/kdecache-mickey" is owned by uid 1000 instead of uid 0.

Error: "/tmp/kde-mickey" is owned by uid 1000 instead of uid 0.

Error: "/tmp/ksocket-mickey" is owned by uid 1000 instead of uid 0.

Error: "/var/tmp/kdecache-mickey" is owned by uid 1000 instead of uid 0.

Error: "/var/tmp/kdecache-mickey" is owned by uid 1000 instead of uid 0.

Error: "/var/tmp/kdecache-mickey" is owned by uid 1000 instead of uid 0.

Error: "/var/tmp/kdecache-mickey" is owned by uid 1000 instead of uid 0.
 
Old 10-30-2007, 01:08 AM   #5
bob_dobbs
LQ Newbie
 
Registered: Oct 2007
Location: Berlin Germany
Distribution: Sidux, Debian
Posts: 12

Rep: Reputation: 0
KDE Application as root

I would suspect a bug in your version of kdesu or sudo or possibly kdelibs mangling the temp file permissions. Maybe an update of your KDE will help.

Sometimes the "easy" way aint so easy, eh? ;-) Good luck!

PS: MY advice would be to use nano and just get it over with. It is a very simple terminal-based editor. No learning curve or fancy key combos to remember.
 
Old 10-30-2007, 08:06 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741
Why not use "su" directly? "su" to take on root powers, then "konqueror" to start the program.

I don't understand Konqueror as an editor....

Running any GUI file manager as root is a really, really bad idea. The tools that make GUIs so powerful also make it easier to do big-time damage.
 
Old 10-30-2007, 09:54 AM   #7
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,642

Original Poster
Rep: Reputation: 67
I would like to use su - , su but I keep getting;
su: Authenication failure
sorry
Typed in password, and yes it's the correct password all lower case.
Is there supposed to be different password for su than users password ?
There is only one user on this box.
I have tried a number of distro's but Ubuntu gives you fits trying to
use su, su-, it's always authication errors. sudo does work okay.but
sudo konqueror gives me konqueror for user, not root
Something difinitly has gone wrong in the installation.

Last edited by mickeyboa; 10-30-2007 at 09:58 AM.
 
Old 10-30-2007, 04:10 PM   #8
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 64
What has UID 1000?
Default users start at 500.

Brian
 
Old 10-30-2007, 04:29 PM   #9
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Here's what I did to get a SU Konqueror session as root in Kubuntu:

1) Edit /etc/kde/kdm/kdmrc (using sudo kate /etc/...) to set "AllowLoginAsRoot" to "true".
2) Restart kdm (Ctrl-Alt-Backspace)
3) Enter root and the root password in the logon box
4) Start Konqueror after KDE starts.

Note 1: If you can't find the Kubuntu password, you can reset it via the sudo passwd root command.

Note 2: My Kubuntu is running behind a hardware firewall and, in addition, I have the iptables firewall active. (Running a X session as "root" can be risky.)

Note 3: I've just (2 days) started playing with Kubuntu. On my Fedora 7 distribution, a kdesu konqueror starts a root session konqueror with no fuss.
 
Old 10-30-2007, 04:35 PM   #10
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,642

Original Poster
Rep: Reputation: 67
What has UID 1000?
Default users start at 500.


Yes that's what I thought, but uid 1000 is what kubuntu-7.10 gave me.
 
Old 10-30-2007, 05:05 PM   #11
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,642

Original Poster
Rep: Reputation: 67
"AllowLoginAsRoot" to "true"

Made changes to /etc/kde/kdm/kdmrc and restarted kde and ran kdesu konqueror, but it doesn't ask for password , I just get below.

~$ kdesu konqueror
Error: "/var/tmp/kdecache-mickey" is owned by uid 1000 instead of uid 0.

Error: "/tmp/kde-mickey" is owned by uid 1000 instead of uid 0.

Error: "/tmp/ksocket-mickey" is owned by uid 1000 instead of uid 0.

Error: "/var/tmp/kdecache-mickey" is owned by uid 1000 instead of uid 0.

Error: "/var/tmp/kdecache-mickey" is owned by uid 1000 instead of uid 0.

Error: "/var/tmp/kdecache-mickey" is owned by uid 1000 instead of uid 0.

Error: "/var/tmp/kdecache-mickey" is owned by uid 1000 instead of uid 0.

Error: "/var/tmp/kdecache-mickey" is owned by uid 1000 instead of uid 0.


kdesu konqueror , or sudo konqueror just give a user konqueror.
 
Old 10-30-2007, 05:43 PM   #12
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,642

Original Poster
Rep: Reputation: 67
even if i do a $ su
root@mickey-desktop:/home/mickey# cd /
root@mickey-desktop:/# konqueror
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

I still can't start konqueror

What gives with Kubuntu-7.10 ??
 
Old 10-30-2007, 06:06 PM   #13
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 64
OK as the users first run this command ' xhost + '. Now su to root and try konquorer again.

Brian
 
Old 10-30-2007, 06:21 PM   #14
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,642

Original Poster
Rep: Reputation: 67
That solved the problem, why did it do that ?

Thanks for your help.
 
Old 10-30-2007, 07:13 PM   #15
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 64
xhost is not the most secure way to do that. I am not sure how it normally works on my system.

If you reboot I beleive it reverts back to the issue you have. If it does not allow su to run an x app then run the command ' xhost ' and post the output.
I will compare to mine.

Not sure where this is controlled unless I start googling around for info.

Brian
 
  


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
How to run konqueror from command line statyk Linux - Software 6 10-13-2006 05:16 PM
konqueror crashes when I run it from the console santiagosilva Linux - Software 3 08-13-2006 02:40 PM
File Manager and Konqueror won't run S3ct0r Debian 2 05-29-2004 12:09 PM
Java applets run fine in Konqueror, but won't run in MS IE. OAnimal Linux - Software 7 12-04-2002 06:32 AM
Konqueror will not run OrsonMork Linux - Newbie 1 04-19-2002 02:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:42 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration