Date: Mon, 13 Dec 1999 20:01:15 -0500 (EST) From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: yoshi@parodius.com (Jeremy Chadwick) Cc: freebsd-questions@FreeBSD.ORG Subject: Re: tty access/modification times not being updated? Message-ID: <199912140101.UAA75154@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <19991212201037.A6512@parodius.com> from Jeremy Chadwick at "Dec 12, 1999 08:10:37 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Jeremy Chadwick wrote, > Greetings. I've recently come across what looks to be an > annoying problem regarding when the modification (possibly > access?) times on ttys are updated upon login. > > This could be entirely related to the service which is > allocating the tty for use (telnet, ssh, etc.), but I happen > to think it goes much deeper than that (login_tty(3), ttyname(3), > isatty(3), ttyslot(3), etc.). > > ls shows the following timestamps (modification time) for > each of the above ttys, PRIOR to the login period. > > crw-rw-rw- 1 root wheel 5, 3 Dec 12 01:11 /dev/ttyp3 > crw-rw-rw- 1 root wheel 5, 4 Dec 11 22:52 /dev/ttyp4 > crw-rw-rw- 1 root wheel 5, 5 Dec 10 14:12 /dev/ttyp5 > > In the below example, ttyp3/4/5 all have been logged in via > sshd (ports; 1.2.27), and no commands have been typed to the > shells in question: > > 7:58PM up 18:45, 6 users, load averages: 0.11, 0.10, 0.04 > USER TTY FROM LOGIN@ IDLE WHAT > yoshi p0 koitsu 5:24PM 3 -tcsh (tcsh) > yoshi p1 koitsu 7:58PM 1 -tcsh (tcsh) > yoshi p2 koitsu 7:57PM - w > yoshi p3 koitsu 7:58PM 2days -tcsh (tcsh) > yoshi p4 koitsu 7:58PM 21:05 -tcsh (tcsh) > yoshi p5 koitsu 7:58PM 2days -tcsh (tcsh) > > The instant a command is typed/etc., the timestamps change > appropriately. The above applies to all ttys, not just ttyp3/4/5. > What confuses me even more is the fact that ttyp3 is labelled > idle for 2 days when it should be stating something like 19 > hours. > > Using FreeBSD 3.3-STABLE (with daily cvsup updates; kernel is > labelled 3.4-RC). > > Any comments? This is a well known feature/bug. See the 'oddity with time' thread from back in May. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912140101.UAA75154>