NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: System-wide PATH
On Fri, Dec 24, 2010 at 3:08 PM, IT geek 31 <itgeek31%googlemail.com@localhost>
wrote:
> Hi,
>
> 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
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/pkg/bin,
which overrides stuff in /etc/profile.
You might want to change that to:
PATH=$PATH:$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/pkg/bin
Any users created would get ~/.profile from /etc/skel.
For csh it's /etc/csh.cshrc and then /etc/skel/.cshrc, etc.
Matt
Home |
Main Index |
Thread Index |
Old Index