bogus tty entry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 at 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 at braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux