home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / minix / 4311 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.5 KB  |  37 lines

  1. Newsgroups: comp.os.minix
  2. Path: sparky!uunet!timbuk.cray.com!walter.cray.com!grumpy!leno
  3. From: leno@grumpy.cray.com (Scott J. Leno)
  4. Subject: Re: Question init.c <--> /etc/utmp
  5. Message-ID: <1992Aug26.083107.12180@walter.cray.com>
  6. Keywords: init login utmp wtmp
  7. Sender: Scott J. Leno
  8. Organization: Cray Research, Inc.
  9. References: <1992Aug25.135457.26129@walter.cray.com> <meulenbr.714819852@cstw168>
  10. Date: 26 Aug 92 08:31:07 CDT
  11. Lines: 24
  12.  
  13. In article <meulenbr.714819852@cstw168> meulenbr@prl.philips.nl (Frans Meulenbroeks) writes:
  14. >leno@grumpy.cray.com (Scott J. Leno) writes:
  15. >>  As it stands now login writes a utmp entry to /etc/utmp, but init never
  16. >> gets to zero it out when I log off. I have made mods to init to fix this,
  17. >> if anyone is interested, I will post them.
  18. >In /etc/rc add the line:
  19. >>/etc/utmp
  20. >which will clear the file whenever the system is booted.
  21.   The probelm is that when I log out and then in again as a another user
  22.  there are now two entries in /etc/utmp and it appears that I am logged in
  23.  twice from the same tty. I do have the above line in my /etc/rc, and I
  24.  don't see logins across boots, but I see several users logged in on the
  25.  same tty after the machine has been up for a while. Init fails to clear
  26.  the utmp file because the /usr/adm/wtmp file is not writeable (doen't
  27.  exist). 
  28. >No need to change init.
  29.   If you look, init won't try and write to /etc/utmp if it fails to write
  30.  to /usr/adm/wtmp. This ends up making it look like the same tty has
  31.  several people logged in on it.
  32. >Good luck,
  33.   Thanks,
  34.       Scott
  35.  
  36.  
  37.