Subject: Re: System wide environment
To: NetBSD - Users <netbsd-users@netbsd.org>
From: Brian Rose <lists@brianrose.net>
List: netbsd-users
Date: 08/30/2003 23:11:52
Jeremy C. Reed wrote:

>
> By the way, what is your path (that you didn't want)?


-bash-2.05b$ env
TERM=xterm
SHELL=/usr/pkg/bin/bash
SSH_CLIENT=192.168.100.4 1347 22
SSH_TTY=/dev/ttyp0
USER=brose
MAIL=/var/mail/brose
PATH=/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin
PWD=/home/brose
SHLVL=1
HOME=/home/brose
LOGNAME=brose
_=/usr/bin/env
-bash-2.05b$


Notice that there is no /sbin, /usr/sbin, etc.

I know I can change it in the ~/.profile for each user or the /etc/profile, but those files are not read by all shells. I'm looking for the grand-poohbah place to set environment values.

>
> Setup /etc/login.conf path.


/etc/login.conf. This file is not present on my system. Should it be?


>
> Maybe something like:
>
> default:path=/bin /usr/bin /usr/local/bin:
>
>    Jeremy C. Reed
>    http://www.reedmedia.net/