Patch Name: PHSS_18675 Patch Description: s700_800 10.26 X login/logout do not log for last(1) Creation Date: 99/03/03 Post Date: 99/09/09 Hardware Platforms - OS Releases: s700: 10.26 s800: 10.26 Products: N/A Filesets: BLS.BLS-CORE CMW.CMW-CORE Automatic Reboot?: No Status: General Release Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHSS_18675 Symptoms: PHSS_18675: 1. /var/adm/btmp entries have incorrect type. 2. X logouts are not reflected in last(1). PHSS_17796: When logging in via xdm, no record of the session is made. This causes last(1) and lastb(1) to be inaccurate. Defect Description: PHSS_18675: 1. The utmp entry was set to type USER_PROCESS. 2. When invoked with '-d', sessreg put a corrupted entry into wtmp. Resolution: 1. To be consistent with login(1), the type field is now EMPTY. 2. Add proper handling of writing wtmp entries on logout. PHSS_17796: The X authentication process does not log successful and unsuccessful login attempts for use by last(1) and lastb(1). Resolution: Modify Xstartup and Xreset scripts to log sucessful login and logout. SR: 0000000000 Patch Files: /usr/bin/X11/sessreg /usr/newconfig/usr/lib/X11/xdm/Xreset /usr/newconfig/usr/lib/X11/xdm/Xstartup what(1) Output: /usr/bin/X11/sessreg: 99/07/15 x11r6/clients/xdm/sessreg.c, xclient, hpux_ 10.26, ic5cv Revision 1.5 PATCH_10.26 (PHSS_ 18675) X Window System, Version 11 HP-UX 10.0 SRC_IC3 R5+ (build date: Fri Jul 16 00:09:48 PDT 1999) 1999/07/15 Hewlett-Packard HP-UX 10.26 TOS [ ic5cv - DAV17 ] /usr/newconfig/usr/lib/X11/xdm/Xreset: 99/03/02 x11r6/clients/xdm/config/Xreset, xclients, hpux_10.26, ic5bc Revision 1.2 Hewlett Packa rd Co. $Revision: SecureWare 1.3 x11r5/clients/xdm/config/X reset, xdm, hpux_mlpmp, mlpmp6 $ $Date: 95/0 8/16 14:56:23 $ 99/03/02 x11r6/clients/xdm/config/Xreset, xclients, hpux_10.26, ic5bc Revision 1.2 PATCH_10.26 ( PHSS_17796) /usr/newconfig/usr/lib/X11/xdm/Xstartup: 99/03/02 x11r6/clients/xdm/config/Xstartup, xclients , hpux_10.26, ic5bc Revision 1.3 Hewlett Pac kard Co. $Revision: SecureWare 1.11 x11r5/clients/xdm/config/ Xstartup, xdm, hpux_mlpmp, mlpmp6 $ $Date: 9 5/08/16 14:56:29 $ 99/03/02 x11r6/clients/xdm/config/Xstartup, xclients , hpux_10.26, ic5bc Revision 1.3 PATCH_10.26 (PHSS_17796) cksum(1) Output: 4016322357 16384 /usr/bin/X11/sessreg 2461512433 763 /usr/newconfig/usr/lib/X11/xdm/Xreset 1722174531 4062 /usr/newconfig/usr/lib/X11/xdm/Xstartup Patch Conflicts: None Patch Dependencies: s700: 10.26: PHNE_17797 s800: 10.26: PHNE_17797 Hardware Dependencies: None Other Dependencies: None Supersedes: PHSS_17796 Equivalent Patches: None Patch Package Size: 80 KBytes Installation Instructions: Please review all instructions and the Hewlett-Packard SupportLine User Guide or your Hewlett-Packard support terms and conditions for precautions, scope of license, restrictions, and, limitation of liability and warranties, before installing this patch. ------------------------------------------------------------ 1. Back up your system before installing a patch. 2. Login as root. 3. Copy the patch to the /tmp directory. 4. Move to the /tmp directory and unshar the patch: cd /tmp sh PHSS_18675 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHSS_18675.depot By default swinstall will archive the original software in /var/adm/sw/patch/PHSS_18675. If you do not wish to retain a copy of the original software, you can create an empty file named /var/adm/sw/patch/PATCH_NOSAVE. WARNING: If this file exists when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. It is recommended that you move the PHSS_18675.text file to /var/adm/sw/patch for future reference. To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHSS_18675.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: The pre-patch versions of /usr/lib/X11/xdm/Xreset and Xstart are moved to /usr/newconfig/usr/lib/X11/xdm If you have made any modifications to these files, please merge them with the new versions. You must log off the console for this change to take effect.