*BSD News Article 90177


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!cam-news-hub1.bbnplanet.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news.sprintlink.net!news-peer.sprintlink.net!news-pull.sprintlink.net!news.sprintlink.net!news-stk-11.sprintlink.net!neonramp.com!cynjut.neonramp.com!cynjut.neonramp.com!not-for-mail
From: burgess@cynjut.neonramp.com (Dave Burgess)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Adduser: Command not found.  But it's there!
Date: 2 Mar 1997 13:37:37 -0600
Organization: Configuration Management Svcs, Inc.
Lines: 34
Message-ID: <5fcku1$3qk$1@cynjut.neonramp.com>
References: <5f1ui0$9le@lester.appstate.edu> <33148B88.249B@center.uscs.com>
NNTP-Posting-Host: cynjut.neonramp.com
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:36400

In article <33148B88.249B@center.uscs.com>,
L. Scott Emmons <scotte@center.uscs.com> wrote:
>Kinney Baughman wrote:
>> 
>> Whether the above is related or not, I don't know.  But now everytime I
>> try to run the "adduser" command, FreeBSD tells me the command isn't
>> found.  But there it is, plain as can be in "usr/sbin".  Even though I'm
>> sitting in the "usr/sbin" directory, I still get a "command not found" error
>> message each time I issue the command.
>
>Probably not related. Take a look at your PATH and make sure "/usr/sbin" in
>in there. If you are running as root, it is actually *good* that it doesn't
>run what it finds in the current directory. This is good security, but if you
>are on a guaranteed secure machine, you can add "." to the path if you so
>choose, though it does expose you to a security risk, and you do so at your
>own risk. At any rate, you can find out if it's in your PATH either by direct
>observation (i.e. "echo $PATH"), or "which adduser".
>

Two obvious things to check:

1.  Is it executable?

2.  Does the interpreter (I'll assume perl) exist where the adduser
script says it will be (like /usr/sbin/perl, or
/usr/local/bin/perl5.0002) 

Both of these will cause this error.

-- 
Dave Burgess  (The man of a thousand E-Mail addresses)
*bsd FAQ Maintainer / SysAdmin for the NetBSD system in my spare bedroom
"Just because something is stupid doesn't mean there isn't someone that 
doesn't want to do it...."