Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE and "su" problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
cn73
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2003
Posts: 120
Location: Italy

PostPosted: Thu Nov 27, 2003 12:56 pm    Post subject: KDE and "su" problem Reply with quote

If I "su" to root from a shell, I can't access to some kde programs, like kwrite, Konqueror... 8O . If I login directly whit root, I can!
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Thu Nov 27, 2003 1:20 pm    Post subject: Reply with quote

as normal user, under KDE:
Code:
kdesu konqueror

_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
cn73
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2003
Posts: 120
Location: Italy

PostPosted: Thu Nov 27, 2003 1:23 pm    Post subject: Reply with quote

dsd wrote:
as normal user, under KDE:
Code:
kdesu konqueror
Why I have not the same problem with a Mandrake Installation???
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Thu Nov 27, 2003 1:34 pm    Post subject: Reply with quote

i expect its a KDE configuration issue. try looking for some security options under the kde control centre. IIRC, mandrake defaults to some low-security settings like that.
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
cn73
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2003
Posts: 120
Location: Italy

PostPosted: Thu Nov 27, 2003 2:58 pm    Post subject: Reply with quote

My problem is that su root doesn't have the right PATH as root!

>kwrite

command not found!
Back to top
View user's profile Send private message
Cossins
Veteran
Veteran


Joined: 21 Mar 2003
Posts: 1136
Location: Copenhagen, Denmark

PostPosted: Thu Nov 27, 2003 3:30 pm    Post subject: Reply with quote

That might indicate that /usr/kde/3.1/bin isn't in root's $PATH...

You might add it to the ROOTPATH variable in /etc/profile.env and run env-update.

- Simon
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Thu Nov 27, 2003 4:58 pm    Post subject: Reply with quote

Instead of plain
Code:
su
or
Code:
su root
use:
Code:
su -
or
Code:
su - root

Note the space between the dash and root, it's important. The dash ensures that the shell started by su is a login shell which in turn processes the proper initialization files and adds everything to $PATH.
Also it can't hurt to run
Code:
xhost +localhost

if you started X as a normal user and then su to root and try to start programs that use the X server to display graphics (kwrite for example). If you don't you may (depending on your configuration) get an error message along the lines of
Code:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kwrite: cannot connect to X server :0
Back to top
View user's profile Send private message
cn73
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2003
Posts: 120
Location: Italy

PostPosted: Thu Nov 27, 2003 6:28 pm    Post subject: Reply with quote

Ok...solved!|

my problem was a misconfiguration of .bashrc of root... adding a line

source /etc/profile
my enviroment variable and permissions are correct!
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20630

PostPosted: Mon Aug 02, 2004 5:38 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic.php?t=9109
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum