Article View: comp.sys.next.sysadmin
Article #1450Re: Bad file number?
From: Scott Hess
Date: Fri, 09 Oct 1992 23:48
Date: Fri, 09 Oct 1992 23:48
38 lines
2354 bytes
2354 bytes
In article <1992Oct9.031609.11958@dartvax.dartmouth.edu>
fermat@fermat.dartmouth.edu (Michael Glenn)
>What does this mean, in my /tmp/console.log file.
>
>Software Version 3.0 (Hyper3B)
>opening /usr/adm/lastlog: Bad file number
>opening /etc/utmp: Bad file number
>opening /usr/adm/wtmp: Bad file number
>opening /etc/utmp: Bad file number
>opening /usr/adm/wtmp: Bad file number
>
>This only showed up yesterday, and I've been running 3.0 for over
>a couple of weeks. What have I done?
You're using Stuart2.4 with the slog facility incorrectly installed.
The first three "opening" lines are from when you brought up a new
window, the last two from when you closed it (lastlog is only logged
on open). They shouldn't be printing out "Bad file number", but
there's a slight bug in slog's lopen() procedure that causes it to
attempt an flock() even when the open() failed, and since the fd
is -1, you get what you're seeing.
There's a New Improved Correctly-Logging Version of slog available
on request - but, the problem will _most_ likely come down to not
having installed slog setuid-root. Give the installation instructions
a re-read and see if that fixes things. You should see something like:
howard:/tmp> ls -lg ~/Apps/Stuart.app/slog
-rwsr-sr-x 1 root tty 32768 Oct 5 22:47 /Users/scott/Apps/Stuart.app/slog*
With the "-rws-sr-x" being the operative segment.
Later,
--
scott hess <shess@ssesco.com> <I will not spin the turtle -Bart Simpson>
12901 Upton Avenue South, #326 Burnsville, MN 55337 (612) 895-1208 Anytime!
* ... like a big church choir with all it's members' mouths wide open, *
* singing silence -Blood Music, Greg Bear *
Technical Details
Message-ID:
<SCOTT.92Oct9234811@nic.gac.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!spool.mu.edu!umn.edu!msus1.msus.edu!gacvx2.gac.edu!gacvax2!scottReferences:
<1992Oct9.031609.11958@dartvax.dartmouth.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!spool.mu.edu!umn.edu!msus1.msus.edu!gacvx2.gac.edu!gacvax2!scott Newsgroups: comp.sys.next.sysadmin Subject: Re: Bad file number? Message-ID: <SCOTT.92Oct9234811@nic.gac.edu> From: scott@nic.gac.edu (Scott Hess) Date: 9 Oct 92 23:48:11 References: <1992Oct9.031609.11958@dartvax.dartmouth.edu> Organization: Gustavus Adolphus College Nntp-Posting-Host: nic.gac.edu In-reply-to: fermat@fermat.dartmouth.edu's message of 9 Oct 92 03:16:09 GMTLines: 38 Lines: 38