On Sun, 14 Jun 2020 at 16:49, Christos Zoulas <chris...@astron.com> wrote:
>
> In article 
> <caejnuhyotsjve2gcwtkvt51+q1is0rhtr_wyy423n3g9a8s...@mail.gmail.com>,
> Ottavio Caruso  <ottavio2006-usenet2...@yahoo.com> wrote:
> >On Fri, 12 Jun 2020 at 11:14, Johnny Billquist <b...@update.uu.se> wrote:
> >
> >> However, most users by default don't have /sbin and /usr/sbin in their
> >> path, so you need to add that, or else run the programs using an
> >> explicit path.
> >>
> >
> >How's that possible?
> >
> >oc@NetBSD:/home/oc$ grep sbin /etc/skel/.profile
> >PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/pkg/bin
> >PATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
> >oc@NetBSD:/home/oc$ grep sbin /etc/skel/.cshrc
> >set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R7/bin,pkg/{,s}bin,games} \
>
> The skeleton files are usually used to populate home directories.
> What does echo $PATH say for you or echo $path?
> What do your dot files contain? What is your shell?

I'm not the OP who reported the problem, but, as you ask:

oc@NetBSD:/home/oc$ grep -i path .profile
# Set the search path for programs.
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/pkg/bin
PATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
export PATH

oc@NetBSD:/home/oc$ echo $PATH
/home/oc/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin

KSH_VERSION='@(#)PD KSH v5.2.14 99/07/13.2'

-- 
Ottavio Caruso

Reply via email to