Re: Add to $PATH how?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux