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