You are not logged in.

#1 2004-06-30 19:43:43

bolero
Member
Registered: 2003-10-05
Posts: 60

commands under root Not found

when ever i run as root user.. or doing SU business,  I want to run somthing like Xterm or say for instance maybe konqueror file browser while im under root.  when ever i type in xterm or konqueror, it says command not found.  I have to Cd to the directory where the program is and run it from there, so i cannot run it from anywhere else.  Any other user can do this except root, and it is quite annoying.  Any idea how to fix this?

-bolero

Offline

#2 2004-06-30 20:35:38

whatah
Member
Registered: 2003-08-10
Posts: 114

Re: commands under root Not found

You might want to check your $PATH environment variable and make sure it has all the paths you want in it. some paths to put in it are:

/bin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/gnome/bin:/opt/kde/bin:/usr/X11R6/bin

*make sure you have the paths seperated with a colon
you can assign them in .bashrc (root's bashrc, that is) with something like

PATH="$PATH:<newpaths>"

Offline

#3 2004-06-30 20:55:17

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: commands under root Not found

you can also do
su -
do become a 100% root tongue [for example Xserver of user will not be used by root]

Offline

#4 2004-06-30 23:34:58

bolero
Member
Registered: 2003-10-05
Posts: 60

Re: commands under root Not found

Thanks guys that worked!!

-bolero

Offline

Board footer

Powered by FluxBB