Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with SU
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dcro
Apprentice
Apprentice


Joined: 29 Aug 2002
Posts: 160

PostPosted: Sun Dec 01, 2002 11:07 am    Post subject: Problems with SU Reply with quote

In console (terminal) mode I can't use a soft (in root after su) :

dcro@didier dcro $
dcro@didier dcro $ su
Password:
root@didier dcro # gkrellm
bash: gkrellm: command not found
root@didier dcro #

I have the same result with : konqueror, mozilla, kate, etc.

This problem began 3 days ago, I don't know why. The only changed my screen (from a CRT to a LCD one)
Back to top
View user's profile Send private message
sisyphus
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2002
Posts: 138
Location: Bristol & London - UK

PostPosted: Sun Dec 01, 2002 2:23 pm    Post subject: Reply with quote

It's 'cos they're not on root's path.

type:

Code:

set | grep PATH


and compare with your standard user.

To get your full root path do:

Code:

su --login


instead of straigt su. Alternatively, just type:

Code:

source /etc/profile


Which has the same effect.
_________________
wibble
Back to top
View user's profile Send private message
dcro
Apprentice
Apprentice


Joined: 29 Aug 2002
Posts: 160

PostPosted: Sun Dec 01, 2002 5:28 pm    Post subject: Reply with quote

After doing :
Quote:

set | grep PATH


I have a diffirence in PATH between user and root !

How can I modify the root PATH ?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sun Dec 01, 2002 6:34 pm    Post subject: Reply with quote

There are several ways, but it's hard to do it permanently. Look for settings of ROOTPATH in files in /etc/env.d.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
dcro
Apprentice
Apprentice


Joined: 29 Aug 2002
Posts: 160

PostPosted: Sun Dec 01, 2002 7:29 pm    Post subject: Reply with quote

I don't understand I have the good information in these files :?:
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sun Dec 01, 2002 11:23 pm    Post subject: Reply with quote

Then try running "env-update".
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
dcro
Apprentice
Apprentice


Joined: 29 Aug 2002
Posts: 160

PostPosted: Wed Dec 04, 2002 6:05 pm    Post subject: Reply with quote

env-update has no effect
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Wed Dec 04, 2002 6:20 pm    Post subject: Reply with quote

dcro wrote:
env-update has no effect


Then after env-update, run :
source /etc/profile

Now you can check your environement for the changed variables.

Erik
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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