LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-19-2008, 06:47 AM   #1
khinch
Member
 
Registered: Apr 2007
Location: Carlisle, UK
Distribution: Debian
Posts: 73

Rep: Reputation: 18
Apps won't run as root


I recently installed OpenSuSE 11, and I'm experiencing some strange problems when trying to run programs as root. Usually I would open xterm or konsole, type "su root", enter password, then type "kwrite" or "konqueror". For some reason since installing OpenSuSE 11, after becoming root at the terminal, anything I type just hangs. Currently the only way I can run a file manager as root is to choose "file manager - super user" from the menu.

Anyone have any suggestions why? Any help much appreciated.
 
Old 07-19-2008, 08:08 AM   #2
ophirg
Member
 
Registered: Jan 2008
Location: Israel
Distribution: Kubuntu 13.10
Posts: 134

Rep: Reputation: 34
Try using kdesu instead of su.
If you need root functionality on a gui application, I recommend logging in as root. But only if you *must* have root privileges. I don't recommend using root on a regular basis.
Btw, I assume that programs like ls and mv run with su. if they don't, then your problem could be very different.
 
Old 07-19-2008, 02:19 PM   #3
google01103
Member
 
Registered: May 2006
Distribution: Suse 10.2 x64
Posts: 247

Rep: Reputation: 31
same here, kdesu works but su in a konole will not run gui'ed apps.

personally I think this change, if intentioanal, sucks

an alternative is using the following command line
"ssh -X -l root localhost whatever_cmd_you_wish"
 
Old 07-20-2008, 03:56 AM   #4
khinch
Member
 
Registered: Apr 2007
Location: Carlisle, UK
Distribution: Debian
Posts: 73

Original Poster
Rep: Reputation: 18
Thanks for the replies.

All normal console commands seem to work fine under root, such as ls, chmod, mkdir etc. As google01103 pointed out, it's only gui apps that seem to fail. Further to this, I have noticed that if I run a command like "sudo kwrite" it asks me for root's password and then displays "kwrite: cannot connect to X server".

Kdesu works, as does the SSH command, so at least I can now use "kdesu kwrite /etc/fstab" which was what I was originally trying to accomplish.

I thought this was a kde4 bug at first, but I notice it also happens under gnome. I'm with google01103 on this also; I hope it is a bug and not intentional.

Anyway, at least I know the workaround now, thanks.
 
  


Reply



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
cant run desktop apps as root [Gtk-WARNING **] tidiman07 Ubuntu 1 04-12-2007 04:57 PM
root cannot run x apps from konsole patolfo Debian 4 08-23-2006 09:40 AM
SuSE 10, KDE 3.4: OpenGL apps only work when run as root pschoenb Linux - Software 1 11-10-2005 01:43 PM
Can't run X apps as root michaely Debian 13 07-18-2004 04:47 AM
Using root in X, how to run apps as a usr ? Dark Carnival Linux - Security 6 05-25-2004 03:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:54 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