From owner-freebsd-questions@FreeBSD.ORG Thu Sep 15 06:25:54 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D436016A41F for ; Thu, 15 Sep 2005 06:25:54 +0000 (GMT) (envelope-from dwebman@telus.net) Received: from priv-edmwes25.telusplanet.net (defout.telus.net [204.209.205.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7252043D49 for ; Thu, 15 Sep 2005 06:25:54 +0000 (GMT) (envelope-from dwebman@telus.net) Received: from [10.0.10.6] (really [154.20.242.227]) by priv-edmwes25.telusplanet.net (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20050915062553.MIJA25332.priv-edmwes25.telusplanet.net@[10.0.10.6]> for ; Thu, 15 Sep 2005 00:25:53 -0600 From: Dave Webster To: FreeBSD questions Content-Type: text/plain Date: Wed, 14 Sep 2005 23:24:02 -0700 Message-Id: <1126765442.5238.13.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: can't run /sbin commands X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 06:25:54 -0000 When I first installed FreeBSD I was able to run "halt" and "reboot" as su without the full /sbin/reboot command. After adding a new path to PATH, I've been unable to run these commands without specifying the full path. Recently I tried to install acroread 7.0 and the installation complained I didn't have Linux ABI enabled. When I check /etc/rc.conf, I have: linux_enable="YES" I noticed that when the system was trying to make install the acroread port, it issued the kldstat command - then gave me the error about not having linux ABI. kldstat can only run if the full path /sbin/kldstat is invoked. Here is the output of echo $PATH: /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin: /usr/X11R6/bin:/home/Dave/bin:/usr/home/Dave/apache-forrest-0.7/bin My question is with /sbin in the path why do I have to specify /sbin/reboot, /sbin/kldstat etc.? Could this be causing my make install to fail? How can /sbin be in the path and still require a full path declaration for it's commands to work. regards, Dave