Patch Name: PHCO_28563 Patch Description: s700_800 11.00 pwgrd(1M) cumulative patch Creation Date: 03/04/29 Post Date: 03/05/19 Hardware Platforms - OS Releases: s700: 11.00 s800: 11.00 Products: N/A Filesets: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP Automatic Reboot?: No Status: General Release Critical: No Category Tags: defect_repair general_release Path Name: /hp-ux_patches/s700_800/11.X/PHCO_28563 Symptoms: PHCO_28563: pwgrd(1M) is sometimes not processing the requests correctly when filesystem having /var/spool/pwgr directory is full. PHCO_28006: 1. pwgrd(1m) is intermittently consuming CPU time and not responding to the requests coming to it. 2. pwgrd(1m) is not caching the user names after any Invalid Entry in /etc/passwd. PHCO_24586: 1.pwgrd(1M) does not store groupnames having more than 8 characters correctly. 2.Access problems with pwgrd(1M). PHCO_18445: There are multiple failures if the system is upgraded using patch bundle. PHCO_16796: Postinstall script of the previous patch PHCO_14257 fails on 10.x systems. PHCO_14257: Previous patch PHCO_13497 doesn't install correctly on new systems. PHCO_13497: When the system clock is set backwards and either /etc/passwd, /etc/group or /etc/logingroup have a modify time later than the clock. The symptom is that pwgrd accumulates CPU time until the clock has passed the modify time of the /etc/ files. Defect Description: PHCO_28563: pwgrd(1M) sometimes not processing the request correctly when the filesystem where /var/spool/pwgr directory resides is full. pwgrd(1M) maintains the hash files in /var/spool/pwgr/ directory and when the filesystem is full, hashtable updation may fail. Since this error condition was not handled pwgrd(1M) was processing the request incorrectly. Resolution: pwgrd(1M) has been modified to shutdown the hashing if the hashtable updation fails, so that it does not uses this hashtable for processing the request. PHCO_28006: 1.pwgrd(1m) intermittently consumes CPU time and is not responding to any request. This happens because the flags associated with the hashtables were not updated correctly. Resolution : The code has been modified to make sure that the flags associated with the hashtables are updated properly. 2.pwgrd(1m) is not caching the user/group information after any Invalid Entry in /etc/passwd and /etc/group. Eg. => If the /etc/passwd file has the following entries: ... nobody:*:2:2::/: www:*::1::/: -->THIS IS INVALID SINCE THERE IS NO UID. user1:*:202:60::/mnt/user1:/usr/bin/ksh ... => Login as user1 and touch a file. $ touch testfile => Check the ownership of this file. $ ll testfile << WHEN PWGRD DAEMON IS NOT RUNNING >> -rw-rw-rw- 1 user1 ssgrp 0 Dec 2 15:29 testfile The user name of the file is correctly getting displayed. << WHEN PWGRD DAEMON IS RUNNING >> -rw-rw-rw- 1 202 ssgrp 0 Dec 2 15:29 testfile Here ls(1) is not able to print the user name since pwgrd(1m) is not caching the details of user1. Resolution : The code has been modified to make sure that all the valid entries in /etc/passwd and /etc/group file is cached. PHCO_24586: 1.pwgrd(1M) can not handle groupnames more than 8 characters in length correctly. This was happening as pwgrd(1M) used to truncate groupnames to 8 characters before caching them. Then this truncated group name used to append in the pwgrd output file. Resolution: The code has been modified to take care of the full groupname(without truncation) to be appended to pwgrd output file. 2.Access problems with pwgrd(1M). Resolution: The code has been modified to take care of the access problems. PHCO_18445: The postinstall script which starts the pwgrd daemon is executed immediately after the installation of patch. The newly started pwgrd does not work properly when the patch is installed through a patch bundle. Due to this commands like chown, chgrp will fail in performing their respective operations on patches getting installed after the pwgrd patch in the bundle during installation. Resolution: The automatic startup of pwgrd daemon is moved from postinstall to configure script. In case of patch bundle installation, this script will run after the complete installation of bundle. In case of single patch installation, it will run immediately after the patch installation. PHCO_16796: When upgrading a 10.x system to 11.00 Extension Software, the Postinstall script of the patch PHCO_14257 fails with a core dump. This is because, the Postinstall script tries to start the 11.00 pwgrd on 10.x systems. Resolution: The /usr/sbin/pwgrd doesn't exist on 10.20. Therefore if the machine is not 10.20 then only the the /usr/sbin/pwgrd is started. PHCO_14257: Installing PHCO_13497 on a new system causes SD error PHCO_13497: pwgrd is always active, uses lots of CPU time Enhancement: No SR: 8606292407 8606282157 8606278564 8606165796 8606108334 8606163498 4701424333 4701384453 Patch Files: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/sbin/pwgrd what(1) Output: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/sbin/pwgrd: Password/Group Caching/Hashing Daemon $Revision: 82. 25.1.9 $ PATCH_11_00: cache.o filetime.o hashtable.o hpux_rel .o main.o misc.o server.o string_lst.o 03/04 /29 cksum(1) Output: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 3572776104 40960 /usr/sbin/pwgrd Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_13497 PHCO_14257 PHCO_16796 PHCO_18445 PHCO_24586 PHCO_28006 Equivalent Patches: PHCO_28007: s700: 11.11 s800: 11.11 Patch Package Size: 50 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 PHCO_28563 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_28563.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_28563. If you do not wish to retain a copy of the original software, include the patch_save_files option in the swinstall command above: -x patch_save_files=false WARNING: If patch_save_files is false when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. For future reference, the contents of the PHCO_28563.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_28563.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_28563.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None