Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Nov 2001 23:30:31 +0100
From:      "Anthony Atkielski" <anthony@atkielski.com>
To:        "Josh Paetzel" <friar_josh@webwarrior.net>
Cc:        "Mike Meyer" <mwm@mired.org>, <questions@FreeBSD.ORG>
Subject:   Re: Is root's search path special?
Message-ID:  <00dd01c16eee$50ee9790$0a00000a@atkielski.com>
References:  <15349.30413.867238.510518@guru.mired.org> <00c601c16eeb$a8607c30$0a00000a@atkielski.com> <20011116161740.B504@twincat.vladsempire.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Oops ... sorry.  Both are running csh.  He mentions csh, but it sounds like it
is only a bug for scripts.

----- Original Message -----
From: "Josh Paetzel" <friar_josh@webwarrior.net>
To: "Anthony Atkielski" <anthony@atkielski.com>
Cc: "Mike Meyer" <mwm@mired.org>; <questions@FreeBSD.ORG>
Sent: Friday, November 16, 2001 17:17
Subject: Re: Is root's search path special?


> On Fri, Nov 16, 2001 at 11:11:29PM +0100, Anthony Atkielski wrote:
> > Myprogram was an example, but the real-world case where I found this was
with
> > the text editor joe, which is an executable file.  It's in /usr/local/bin,
and
> > /usr/local/bin is in my path, even under root, and yet the shell can't seem
to
> > find it when I am logged in as root, but it finds it when I'm logged in as a
> > normal user.  All the environment variables look pretty much the same, so I
was
> > thinking that there must be something weird about root, but I didn't know
where
> > to look to find out for sure.
>
>
> Given Mike's response, you might tell us which shells the respective
> accounts are using.
>
> Josh
>
>
> >
> > ----- Original Message -----
> > From: "Mike Meyer" <mwm@mired.org>
> > To: "Anthony Atkielski" <anthony@atkielski.com>
> > Cc: <questions@freebsd.org>
> > Sent: Friday, November 16, 2001 21:27
> > Subject: Re: Is root's search path special?
> >
> >
> > > Anthony Atkielski <anthony@atkielski.com> types:
> > > > Why is it that when I try
> > > >
> > > > % myprogram
> > > >
> > > > it will run under an ordinary user login, but cannot be found under a
root
> > > > login?  The program myprogram is in /usr/local/bin, and /usr/local/bin
> > appears
> > > > in the PATH for both the user and the root login.  Why doesn't it work
under
> > > > root?  Is there something special about the way root executes things?
> > >
> > > Is myprogram by any chance a script? There's a bug - I claim it's in
> > > the kernel, but the committers claim that it's in csh - that causes a
> > > bad interpreter on the "#!" line in a script to cause the program to
> > > be reported as "not found" by csh.
> > >
> > > If it is a script, you might verify that the #! line refers to the
> > > interpreter by the full path.
> > >
> > > <mike
>
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00dd01c16eee$50ee9790$0a00000a>