Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Feb 1999 10:06:58 +1000
From:      Greg Black <gjb@comkey.com.au>
To:        Randy Mclean <rmclean@natdoor.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Problums with the whereis command?? 
Message-ID:  <19990210000658.19016.qmail@alpha.comkey.com.au>
In-Reply-To: <4.1.19990209111749.009639c0@mail.natdoor.com>  of Tue, 09 Feb 1999 11:21:15 CST
References:  <19990208191340.13475.qmail@alpha.comkey.com.au> <4.1.19990209111749.009639c0@mail.natdoor.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Well I'm sure there is a simple answer to this question, but I am running
> across an error when I use the whereis command. This is response I get when
> I do a "whereis test"
> 
> Can't exec "/usr/sbin/sysctl -n user.cs_path": Permission denied at
> /usr/bin/whereis line 99test: /bin/test /usr/share/man/man1/test.1.gz
> /usr/src/bin/test

On 2.2.8-Release, I get the same thing.  So let's look at it.
The complaint is:

Can't exec "/usr/sbin/sysctl -n user.cs_path": No such file or directory

So let's check:

$ ls -l /usr/sbin/sysctl
lrwxrwxrwx  1 root  bin  30 Jan 17 16:03 /usr/sbin/sysctl -> /R/stage/trees/bin/sbin/sysctl

But we don't have any directory tree /R/stage/... so the symlink
is wrong.  So now let's fix it to point to a real version of
sysctl (as root):

$ sudo ln -sf /sbin/sysctl /usr/sbin
$ whereis test
test: /bin/test /usr/share/man/man1/test.1.gz /usr/src/bin/test

There, that wasn't too hard...

But it's definitely a bug in the distribution, so you might as
well report it.

-- 
Greg Black <gjb@acm.org>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990210000658.19016.qmail>