SCO OpenServer 5.0.x Openssh 3.6p1 loginrec.c writes incorrect data into the ut_id field of the utmp file. This has been an issue since at least openssh 3.0.2 but I never bothered to report it. For Openssh 3.6p1, defining WITH_ABBREV_NO_TTY corrects the problem. Below is a brief patch to configure which does this. You can observe the errant results in the "Line" column from the output of /usr/bin/last: Script started on Fri Sep 5 12:05:37 2003 $ /usr/bin/last -n 5 rac User Line Device PID Login time Elapsed Time Comments rac p8 ttyp8 28825 Fri Sep 5 12:14 00:20 logged in rac typ2 ttyp2 1168 Thu Sep 4 19:25 16:40 logged in rac typ1 ttyp1 1023 Thu Sep 4 19:14 16:51 logged in rac typ0 ttyp0 1013 Thu Sep 4 19:14 16:51 logged in rac yp24 ttyp24 16191 Wed Sep 3 09:21 1d 23:04 ?? $ Script done on Fri Sep 5 12:05:54 2003 The first entry is a telnet login. All other entries are ssh logins. Note the difference in the Line column between the telnet and ssh entries. The output should look like this: User Line Device PID Login time Elapsed Time Comments rac p8 ttyp8 28825 Fri Sep 5 12:14 00:20 logged in rac p2 ttyp2 1168 Thu Sep 4 19:25 16:40 logged in rac p1 ttyp1 1023 Thu Sep 4 19:14 16:51 logged in rac p0 ttyp0 1013 Thu Sep 4 19:14 16:51 logged in rac p24 ttyp24 16191 Wed Sep 3 09:21 1d 23:04 ?? Here's the patch: --8<-- cut here --8<-- *** configure.orig 2003-03-26 00:12:34.000000000 -0500 --- configure 2003-07-18 17:26:00.000000000 -0400 *************** *** 4588,4593 **** --- 4588,4597 ---- #define DISABLE_FD_PASSING 1 _ACEOF + cat >>confdefs.h <<\_ACEOF + #define WITH_ABBREV_NO_TTY 1 + _ACEOF + for ac_func in getluid setluid --8<-- cut here --8<-- -- Roger Cornelius rac at tenzing.org
Roger Cornelius wrote:> loginrec.c writes incorrect data into the ut_id field of the utmp file. > This has been an issue since at least openssh 3.0.2 but I never bothered > to report it. For Openssh 3.6p1, defining WITH_ABBREV_NO_TTY corrects > the problem.[snip]> Here's the patch: > > --8<-- cut here --8<-- > *** configure.orig 2003-03-26 00:12:34.000000000 -0500 > --- configure 2003-07-18 17:26:00.000000000 -0400"configure" is a machine-generated file, you should edit configure.ac and run "autoreconf" to rebuild it. Are you talking about "*-*-sco3.2v4*" or "*-*-sco3.2v5*" or both? Tim, any issue with doing this? -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
On Fri, 5 Sep 2003, Roger Cornelius wrote:> SCO OpenServer 5.0.x > Openssh 3.6p1 > > loginrec.c writes incorrect data into the ut_id field of the utmp file. > This has been an issue since at least openssh 3.0.2 but I never bothered > to report it. For Openssh 3.6p1, defining WITH_ABBREV_NO_TTY corrects > the problem. Below is a brief patch to configure which does this. YouI've commited the fix to CVS. It should show up in the next snapshot. Thanks for the report. -- Tim Rice Multitalents (707) 887-1469 tim at multitalents.net