From owner-freebsd-questions Wed Jun 5 00:53:11 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA22523 for questions-outgoing; Wed, 5 Jun 1996 00:53:11 -0700 (PDT) Received: from mail.rwth-aachen.de (mail.RWTH-Aachen.DE [137.226.144.9]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA22500 for ; Wed, 5 Jun 1996 00:53:02 -0700 (PDT) Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de) by mail.rwth-aachen.de (PMDF V5.0-4 #13110) id <01I5JNAIRL2O0011FF@mail.rwth-aachen.de>; Wed, 05 Jun 1996 09:52:59 +0100 Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.6.11/8.6.9) id JAA12234; Wed, 05 Jun 1996 09:58:12 +0200 Date: Wed, 05 Jun 1996 09:58:11 +0200 (MET DST) From: "Christoph P. Kukulies" Subject: Re: command not found In-reply-to: To: info@adn.edu.ph (Information Help Desk) Cc: freebsd-questions@freebsd.org Reply-to: Christoph Kukulies Message-id: <199606050758.JAA12234@gilberto.physik.rwth-aachen.de> MIME-version: 1.0 X-Mailer: ELM [version 2.4ME+ PL16 (25)] Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > HI !!! > > Whenever I run an executable file located in the current directory > I'm in, I always receive a 'command not found' error. I found this very > odd since the executable file is there but it seems that the shell cannot > find it. To remedy this problem I have to prefix any executable file I > want to run with './' (i.e. ./bootpgw). > > Is there any other solutions for this bug (if it is)? This isn't a bug. It's a feature. Examine your PATH. (echo $PATH). I guess you are logged in as superuser (root). The path to the current directory is intentionally left out of the root user's path (for security reasons). If you add a user to the system e.g. via the 'adduser' command (introduced in 2.1.0-RELEASE) the profile files (.cshrc/.login resp. .profile) are copied into the user's home directory and contain the correct path statements. > > Thank You ~:') > > -- > jf > > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de