From: "Joseph C. Lininger" <jbahm@pcdesk.net>
To: speakup@braille.uwo.ca
Subject: Re: bogus tty entry
Date: Thu, 27 Mar 2003 04:41:14 -0700 (Mountain Standard Time) [thread overview]
Message-ID: <Pine.WNT.4.53.0303270439210.1200@merlin> (raw)
In-Reply-To: <Pine.BSF.4.53.0303262124450.61588@server1.shellworld.net>
I believe you actually want to get rid of /var/run/utmp, not wtmp. wtmp
holds login information, but not the info on who is currently logged in.
utmp is the file that holds that info. As I said in a previous message, I
don't recommend overwriting this file while your system is live because
some very weird things will happen if you do.
--
Joseph C. Lininger
jbahm@pcdesk.net
On Wed, 26 Mar 2003, Luke Davis wrote:
> Do you need to do it on delay, then log out before it hits? That is:
>
> (sleep 10; cat /dev/null > /var/wtmp) &
> exit
>
> On Wed, 26 Mar 2003, Adam Myrow wrote:
>
> > The only way to get rid of that is to zero out /var/wtmp and log out of
> > all vertial terminals. You could also reboot, but why bother when you can
> > fix it without doing that? The magic command is "cat /dev/null
> > >/var/wtmp." Catting /dev/null over any file will make it empty but leave
> > its ownership and permissions intact, so this is the best way to empty out
> > a file that the system relies on. Good luck.
> >
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup@braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
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 [this message]
` 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
` 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.0303270439210.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).