From owner-freebsd-questions Tue Dec 1 19:02:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA25913 for freebsd-questions-outgoing; Tue, 1 Dec 1998 19:02:20 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from firewall.scitec.com.au (fgate.scitec.com.au [203.17.180.68]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA25908 for ; Tue, 1 Dec 1998 19:02:18 -0800 (PST) (envelope-from john.saunders@scitec.com.au) Received: by firewall.scitec.com.au; id OAA12207; Wed, 2 Dec 1998 14:02:05 +1100 (EST) Received: from mailhub.scitec.com.au(203.17.180.131) by fgate.scitec.com.au via smap (3.2) id xma012196; Wed, 2 Dec 98 14:01:42 +1100 Received: from saruman (saruman.scitec.com.au [203.17.182.108]) by mailhub.scitec.com.au (8.6.12/8.6.9) with SMTP id OAA02479; Wed, 2 Dec 1998 14:01:20 +1100 From: "John Saunders" To: "Jim Mock" , "Ben Smithurst" Cc: Subject: RE: whereis in 2.2.8-RELEASE Date: Wed, 2 Dec 1998 14:01:20 +1100 Message-ID: <002501be1da0$0949ffd0$6cb611cb@saruman.scitec.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-Mimeole: Produced By Microsoft MimeOLE V4.72.2106.4 In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Tue, 1 Dec 1998, Ben Smithurst wrote: > > > Jim Mock wrote: > > > > > [root@oz:~]# whereis sendmail > > > Can't exec "/usr/sbin/sysctl -n user.cs_path": No such file or > > > directory at /usr/bin/whereis line 99sendmail: /usr/sbin/sendmail > > > /usr/share/man/man8/sendmail.8.gz > > > > sysctl is in /sbin. Just edit the whereis script, the version in 3.0 > > doesn't seem to have this problem. Hmm... john@monster:~ {508} $ ll /sbin/sysctl -r-xr-xr-x 1 bin bin 57344 Nov 5 20:31 /sbin/sysctl* john@monster:~ {509} $ ll /usr/sbin/sysctl lrwxrwxrwx 1 root bin 12 Nov 5 20:31 /usr/sbin/sysctl@ -> /sbin/sysctl Looking at /usr/sys/usr.sbin/sysctl/Makefile makes me think that a symbolic link has gone missing in your system. BINDIR= /sbin LINKS= ${BINDIR}/sysctl /usr/sbin/sysctl I would suggest "ln -s -f /sbin/sysctl /usr/sbin/sysctl" instead of editing the whereis script. Cheers. -- . +-------------------------------------------------------+ ,--_|\ | John Saunders mailto:John.Saunders@scitec.com.au | / Oz \ | SCITEC LIMITED Phone +61294289563 Fax +61294289933 | \_,--\_/ | "By the time you make ends meet, they move the ends." | v +-------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message