From owner-freebsd-questions Fri Nov 16 12:28: 1 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id C736737B419 for ; Fri, 16 Nov 2001 12:27:58 -0800 (PST) Received: (qmail 13407 invoked by uid 100); 16 Nov 2001 20:27:57 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15349.30413.867238.510518@guru.mired.org> Date: Fri, 16 Nov 2001 14:27:57 -0600 To: "Anthony Atkielski" Cc: questions@freebsd.org Subject: Re: Is root's search path special? In-Reply-To: <44732167@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Anthony Atkielski 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. http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message