[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: System-wide PATH
Bash is also an sh (bourne) shell.
On Fri, Dec 24, 2010 at 3:39 PM, IT geek 31 <itgeek31%googlemail.com@localhost>
> I forgot to mention that my shell is Bash, compiled from source (into
> On 24 December 2010 20:28, matthew sporleder <msporleder%gmail.com@localhost>
>> On Fri, Dec 24, 2010 at 3:08 PM, IT geek 31
>> <itgeek31%googlemail.com@localhost> wrote:
>>> I need to modify the system-wide PATH, mainly to ensure /usr/pkg/bin
>>> and /usr/pkg/sbin are used first.
>>> Where do I do this? I STFW'd and came up with nothing conclusive :-(
>>> Many thanks
>> For sh and ksh you might want to do a few things:
>> Make your system-wide changes to /etc/profile
>> Then check in /etc/skel/.profile because by default it has
>> which overrides stuff in /etc/profile.
>> You might want to change that to:
>> Any users created would get ~/.profile from /etc/skel.
>> For csh it's /etc/csh.cshrc and then /etc/skel/.cshrc, etc.
Main Index |
Thread Index |