[CentOS] Missing In PATH

Cody Holland

cholland at redmoonbroadband.com
Mon Oct 17 22:07:51 UTC 2005


I'm a newb to linux so please be patient.  Running CentOS 4.  Using
Bash.  I'm not sure what happened, but now for some reason /sbin,
/usr/sbin, and /usr/local/sbin are all missing from the path.  I am su'd
as root.  I've tried several different methods to put this back
including:

PATH="/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/hom
e/cholland/bin:/sbin:/usr/sbin:/usr/local/sbin"

export PATH=$PATH:/sbin
export PATH=$PATH:/usr/sbin
export PATH=$PATH:/usr/local/sbin

All of these do add the directories to the path until I logout and log
back in.  Then they are gone again.  Any help would be greatly
appreciated.

Thanks
Cody



More information about the CentOS mailing list