From owner-freebsd-questions Fri Nov 16 19:25:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from y3k.shacknet.nu (ts5m-pool0-166.gti.net [208.216.126.166]) by hub.freebsd.org (Postfix) with ESMTP id AB22237B418 for ; Fri, 16 Nov 2001 19:25:34 -0800 (PST) Received: (from mark@localhost) by y3k.shacknet.nu (8.11.6/8.11.6) id fAFNmGg02154; Thu, 15 Nov 2001 18:48:16 -0500 (EST) (envelope-from mark) Message-ID: X-Mailer: XFMail 1.5.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <00c601c16eeb$a8607c30$0a00000a@atkielski.com> Date: Thu, 15 Nov 2001 18:48:15 -0500 (EST) From: y3k@gti.net To: Anthony Atkielski Subject: Re: Is root's search path special? Cc: questions@freebsd.org 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 On 16-Nov-2001 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. After installing a program, if you're running tcsh, you have to run 'rehash' to search your path for executables. Or you can log out and back in or something. If you installed the program as root, tried to run it and it didnt work, then logged in as a regular user and tried to run it and it worked, that might explain it. -mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message