Add to $PATH how?

Jon Ingason Jon.Ingason at telia.com
Thu Jun 1 11:18:48 UTC 2006


Chris Bradford wrote:
> For some reason /sbin/ is no longer in my $PATH or root's $PATH
> 
> How can I edit my path, and ensure that this is saved upon reboot?
> 
> This only seems to be the case in gdm, under tty1 both my account and
> root have /sbin/ in our $PATH

For root the /sbin/ is added in /etc/profile. Take a look at it. An 
ordinary user you should not have it in his PATH. But you can add it i 
.bash_profile. Something like this:

...
# User specific environment and startup programs

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

export PATH
...


> 
> Thanks,
> 
> Chris Bradford
> Systems Administrator
> Cambridge Newspapers
> 
> 
> This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
> 


-- 
Regards
Jon Ingason




More information about the fedora-list mailing list