Patch Name: PHCO_15222 Patch Description: s700_800 10.01-10 useradd(1M) cumulative patch with Y2K fix Creation Date: 98/05/12 Post Date: 98/05/22 Hardware Platforms - OS Releases: s700: 10.01 10.10 s800: 10.01 10.10 Products: N/A Filesets: OS-Core.SYS-ADMIN OS-Core.ADMN-ENG-A-MAN Automatic Reboot?: No Status: General Release Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHCO_15222 Symptoms: PHCO_15222: useradd(1M) can not process expired dates set to dates of year 2000 and 2001 in mm/dd/yy format PHCO_12185: useradd(1M) does not allow multiple users to share generic home directory. usermod(1M) reports "Can not modify home directory" when changing primary group of a user. PHCO_9832: useradd(1M) claims passwd file is busy if system is NIS client. PHCO_9536: PHCO_8088 erroneously reports an error "Cannot create home directory" PHCO_8088: After installing the cumulative patch PHCO_7257, the commands useradd(1M) and usermod(1M) reports error even after achieving the required functionality PHCO_7257: This patch prevents the corruption of the /etc/passwd file when commands that modify the /etc/passwd file are executed simultaneously. PHCO_6821: This patch superceedes PHCO_6435. This patch is created for 10.00 10.01 and 10.10. The previous patch PHCO_6435 was not created for 10.10. PHCO_6435: Usermod(1M) corrupts /etc/group file with multiple lines for same group. This patch fixes this problem. If a hard link is maintained between the /etc/group and /etc/logingroup and now if the groupadd/groupmod/groupdel are executed, then the link was broken. This defect is fixed in this patch. When a user is added in NIS client-server configuration, then any NIS escape sequence should be permitted. This fix is also available in this patch. PHCO_6261: Any user converted to trusted system mode which does not login before the "Lock Inactive Accounts" option is chosen, is deactivated. The patch PHCO_6435 replaces PHCO_6261. PHCO_6057: Under trusted system mode, with a large number of users, adding a new user takes a long time (e.g. 20 minutes). PHCO_5932: Any user added to a C2 system after the "Lock Inactive Accounts" option is chosen starts out deactivated. Defect Description: PHCO_15222: useradd(1M) can not process expired dates set to dates of year 2000 and 2001 in mm/dd/yy format PHCO_12185: useradd(1M) does not allow multiple users to share generic home directory. usermod(1M) reports "Can not modify home directory" when changing the primary group of a user. PHCO_9832: useradd(1M) claims passwd file is busy if system is NIS client. PHCO_9536: PHCO_8088 erroneously reports an error "Cannot create home directory" PHCO_8088: Commands usermod(1M) and useradd(1M) in the patch PHCO_7257 reports error even after acheiving the requiredi functionality. PHCO_7257: This patch prevents the corruption of the /etc/passwd file when commands that modify the /etc/passwd file are executed simultaneously. PHCO_6821: This patch superceedes PHCO_6435. This patch is created for 10.00 10.01 and 10.10. The previous patch PHCO_6435 was not created for 10.10. PHCO_6435: Usermod(1M) corrupts /etc/group file with multiple lines for same group. This patch fixes this problem. If a hard link is maintained between the /etc/group and /etc/logingroup and now if the groupadd/groupmod/groupdel are executed, then the link was broken. This defect is fixed in this patch.group and /etc/logingroup and now if the groupadd/groupmod/ groupdel are executed, then the link was broken. This defect is fixed in this patch. When a user is added in NIS client-server configuration, then any NIS escape sequence should be permitted. This fix is also available in this patch. PHCO_6261: Any user converted to trusted system mode which does not login before the "Lock Inactive Accounts" option is chosen, is deactivated. The patch PHCO_6435 replaces PHCO_6261. PHCO_6057: Under trusted system mode, with a large number of users, adding a new user takes a long time (e.g. 20 minutes). PHCO_5932: Any user added to a C2 system after the "Lock Inactive Accounts" option is chosen starts out deactivated. SR: 1653198192 5003325290 5003305359 5003308346 5003346510 5003377358 Patch Files: /usr/lib/nls/msg/C/ugm.cat /usr/newconfig/etc/default/useradd /usr/sbin/groupadd /usr/sbin/groupdel /usr/sbin/groupmod /usr/sbin/useradd /usr/sbin/userdel /usr/sbin/usermod /usr/share/man/man1m.Z/useradd.1m /usr/share/man/man1m.Z/userdel.1m /usr/share/man/man1m.Z/usermod.1m what(1) Output: /usr/lib/nls/msg/C/ugm.cat: None /usr/newconfig/etc/default/useradd: None /usr/sbin/groupadd: $Revision: 72.6.1.3 $ $Revision: 76.3.1.10 $ PATCH_10_01: groupadd.o ugm_cmn.o 98/05/12 /usr/sbin/groupdel: $Revision: 72.6.1.3 $ $Revision: 76.3.1.10 $ PATCH_10_01: groupadd.o ugm_cmn.o 98/05/12 /usr/sbin/groupmod: $Revision: 72.6.1.3 $ $Revision: 76.3.1.10 $ PATCH_10_01: groupadd.o ugm_cmn.o 98/05/12 /usr/sbin/useradd: $Revision: 76.6.1.6 $ $Revision: 76.3.1.10 $ PATCH_10_01: useradd.o ugm_cmn.o /usr/lib/year2000.o 98/05/12 /usr/sbin/userdel: $Revision: 72.7.1.3 $ $Revision: 76.3.1.10 $ PATCH_10_01: userdel.o ugm_cmn.o 98/05/12 /usr/sbin/usermod: $Revision: 72.9.1.4 $ $Revision: 76.3.1.10 $ PATCH_10_01: usermod.o ugm_cmn.o /usr/lib/year2000.o 98/05/12 /usr/share/man/man1m.Z/useradd.1m: None /usr/share/man/man1m.Z/userdel.1m: None /usr/share/man/man1m.Z/usermod.1m: None cksum(1) Output: 1980687929 2716 /usr/lib/nls/msg/C/ugm.cat 912091837 67 /usr/newconfig/etc/default/useradd 133641277 32949 /usr/sbin/groupadd 133641277 32949 /usr/sbin/groupdel 133641277 32949 /usr/sbin/groupmod 1069707989 49354 /usr/sbin/useradd 3190024180 37043 /usr/sbin/userdel 1506842449 41143 /usr/sbin/usermod 3101537434 4096 /usr/share/man/man1m.Z/useradd.1m 950094396 2011 /usr/share/man/man1m.Z/userdel.1m 2451809779 3688 /usr/share/man/man1m.Z/usermod.1m Patch Conflicts: None Patch Dependencies: s700: 10.10: PHCO_14254 s700: 10.01: PHCO_14253 s800: 10.10: PHCO_14254 s800: 10.01: PHCO_14253 Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_5932 PHCO_6057 PHCO_6261 PHCO_6435 PHCO_6821 PHCO_7257 PHCO_8088 PHCO_9536 PHCO_9832 PHCO_12185 Equivalent Patches: PHCO_15221: s700: 11.00 s800: 11.00 PHCO_15216: s700: 10.20 s800: 10.20 Patch Package Size: 240 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_15222 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHCO_15222.depot 5b. For a homogeneous NFS Diskless cluster run swcluster on the server to install the patch on the server and the clients: swcluster -i -b This will invoke swcluster in the interactive mode and force all clients to be shut down. WARNING: All cluster clients must be shut down prior to the patch installation. Installing the patch while the clients are booted is unsupported and can lead to serious problems. The swcluster command will invoke an swinstall session in which you must specify: alternate root path - default is /export/shared_root/OS_700 source depot path - /tmp/PHCO_15222.depot To complete the installation, select the patch by choosing "Actions -> Match What Target Has" and then "Actions -> Install" from the Menubar. 5c. For a heterogeneous NFS Diskless cluster: - run swinstall on the server as in step 5a to install the patch on the cluster server. - run swcluster on the server as in step 5b to install the patch on the cluster clients. By default swinstall will archive the original software in /var/adm/sw/patch/PHCO_15222. 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 PHCO_15222.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/PHCO_15222.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None