On Tue, Jun 24, 2003, Bill Campbell wrote:

> I've edited the /etc/login.conf file adding %{l_prefix}/sbin and
> %{l_prefix}/bin at the beginning of the default PATH, and it works for non-
> root users.

FreeBSD, and also openssh when built for FreeBSD, use login.conf. The
root user will use the root: section (which by default references the
default: section). Don't forget to cap_mkdb /etc/login.conf after you
changed /etc/login.conf.

This is what the login shell gets as its initial path. The shell will
then execute various startup scripts depending on the particular shell.

An OpenPKG bash will run %{l_prefix}/etc/bash/profile, $HOME/.bashrc
and $HOME/.bash_login in that order. The standard OpenPKG profile will
use the %{l_prefix}/etc/rc script to add the OpenPKG hierarchy to the PATH.

Greetings,
-- 
    ,eM""=.            a"-.                         Michael van Elst
   dWWMWM" -          :GM==;                        [EMAIL PROTECTED]
  :WWMWMw=--.          "W='  cable & wireless
   9WWMm==-.
    "-Wmw-"  CABLE & WIRELESS

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to