Patch Name: PHCO_27277 Patch Description: s700_800 11.00 chmod(1) cumulative patch Creation Date: 02/06/12 Post Date: 02/07/22 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_27277 Symptoms: PHCO_27277: 1. "chmod -R" sets incorrect permissions to the file if the file has symbolic reference(s). Defect Description: PHCO_27277: 1.When chmod(1) is used with -R option and symbolic permissions are used, chmod(1) sets wrong permissions to the file pointed to by symbolic link. The problem can be reproduced as given below. $ ll lrwxrwxrwx ................. file1 -> file2 -rw-rw-rw- ................. file2 $ chmod -R g-w file1 $ ll lrwxrwxrwx ................. file1 -> file2 -rwxr-xrwx ................. file2 The correct output should be: $ ll lrwxrwxrwx ................. file1 -> file2 -rw-r--rw- ................. file2 Resolution: While modifying the permissions for files which have symbolic links attached, the permission of the symbolic link(s) was manipulated and assigned to the file. The command is modified to take the permissions of the file pointed to by the symlink and manipulate its permissions. SR: 5003435297 Patch Files: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /sbin/chmod /usr/bin/chmod what(1) Output: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /sbin/chmod: $Revision: 80.2.1.2 $ $ PATCH/11.00:PHCO_19491 Aug 9 1999 09:51:13 $ PATCH_11_00: chmod.o 02/06/12 OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/chmod: $Revision: 80.2.1.2 $ PATCH_11_00: chmod.o 02/06/12 cksum(1) Output: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 3415342086 245760 /sbin/chmod OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 1997532225 32768 /usr/bin/chmod Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: None Equivalent Patches: None Patch Package Size: 290 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_27277 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_27277.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_27277. 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_27277.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_27277.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_27277.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None