From: "Joseph C. Lininger" <jbahm@pcdesk.net>
To: Speakup List <speakup@braille.uwo.ca>
Subject: Re: bogus tty entry
Date: Thu, 27 Mar 2003 04:36:28 -0700 (Mountain Standard Time) [thread overview]
Message-ID: <Pine.WNT.4.53.0303270431180.1200@merlin> (raw)
In-Reply-To: <200303270117.h2R1Hao10730@sunset.net>
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!
>
>
next prev parent reply other threads:[~ UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
Ralph W. Reid
` Adam Myrow
` Luke Davis
` Adam Myrow
` Joseph C. Lininger
` Adam Myrow
` Lorenzo Prince
` Luke Davis
` Ralph W. Reid
` Lorenzo Prince
` Ralph W. Reid
` Ralph W. Reid
` Adam Myrow
` Joseph C. Lininger
` Joseph C. Lininger [this message]
` Ralph W. Reid
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.WNT.4.53.0303270431180.1200@merlin \
--to=jbahm@pcdesk.net \
--cc=speakup@braille.uwo.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).