From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from www.pcdesk.net ([198.31.26.207] helo=gwen.pcdesk.net) by speech.braille.uwo.ca with smtp (Exim 3.35 #1 (Debian)) id 18yVgL-0002ZE-00 for ; Thu, 27 Mar 2003 06:36:30 -0500 Received: (qmail 5456 invoked from network); 27 Mar 2003 11:35:56 -0000 Received: from localhost.wcox.com (HELO pcdesk.net) (1011@127.0.0.1) by localhost.wcox.com with SMTP; 27 Mar 2003 11:35:56 -0000 X-MessageWall-Score: 0 (pcdesk.net) Received: from [192.168.0.100] (authenticated as jbahm) by pcdesk.net (MessageWall 1.0.8) with SMTP (encrypted with RC4-MD5); 27 Mar 2003 11:35:56 -0000 Date: Thu, 27 Mar 2003 04:36:28 -0700 (Mountain Standard Time) From: "Joseph C. Lininger" To: Speakup List Subject: Re: bogus tty entry In-Reply-To: <200303270117.h2R1Hao10730@sunset.net> Message-ID: References: <200303270117.h2R1Hao10730@sunset.net> X-X-Sender: jbahm@pcdesk.net MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: speakup-admin@braille.uwo.ca Errors-To: speakup-admin@braille.uwo.ca X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: speakup@braille.uwo.ca List-Help: List-Post: List-Subscribe: , List-Id: Speakup is a screen review system for Linux. List-Unsubscribe: , List-Archive: I know you don't want to reboot, but I would recommend just that. The slackware 8.0 boot scripts will clear out the utmp file when you do this. They issue a "cat /dev/null > /var/run/utmp" which effectively clears the file out. Don't do this yourself as the system won't function right until you reboot if you do. Logins, runlevel, and some other things will break. -- Joseph C. Lininger jbahm@pcdesk.net On Wed, 26 Mar 2003, Ralph W. Reid wrote: > An incorrect user/tty combination is displayed by `who' on my system, > and I would like to remove it. `who' indicates that I am logged in > on tty12 even when I am not. If I do log in on tty12, I appear to be > logged in on that tty twice. The bogus terminal usage has no > processes associated with it so there is nothing to kill that might > clear the problem up. > > I suspect that I crashed something that has left an invalid entry in > /var/run/utmp, but I do not know how to remove the invalid entry from > the file. I tried to write a little C program to remove the invalid > entry using `logout' as defined in /usr/include/utmp.h, but an error > during compilation-linking seemed to indicate that I needed to > include one of the many libraries (perhaps from /lib?) on this system > to get my little program to become a running executable. Is there > some sort of program on Slackware 8.0 that might help me clear up > this little annoyance, or should I start trying to figure out which > library I need to link with my little program to deal with it? I > would prefer not to reboot this system just to handle such a little > problem. Thanks for any suggestions, and have a _great_ day! > >