Patch-ID# 100650-01 Keywords: shmctl aborts ipcs memory shared Synopsis: 4.1.1, 4.1.2: ipcs aborts with "shmctl: Permission denied" Date: 02/Jun/92 SunOS release: 4.1.1, 4.1.2 Unbundled Product: Unbundled Release: Topic: This patch fixes some anomalies in the way 4.1.x ipcs handles checking permissions of shared memory segments and semaphores BugId's fixed with this patch: 1046490 Architectures for which this patch is available: sun3, sun4 Patches which may conflict with this patch: Obsoleted by: SYS_V Rel 4 Files included with this patch: /usr/bin/ipcs Problem Description: For a non-root user, the ipcs program abnormally terminates with "shmctl: Permission denied" when there exists a shared memory segment "owned" by another user and its permission bits don't allow read access by the user executing "ipcs". This patch fixes the ipcs command in this regard. Install Instructions: 1) Save the original ipcs: mv /usr/bin/ipcs /usr/bin/ipcs.FCS 2) cd to the appropriate SunOS release subdirectory (4.1.1 or 4.1.2) and copy the patched ipcs to /usr/bin: cp `arch`/ipcs /usr/bin/ipcs 3) fix the ownership and permissions of the new ipcs: chown root /usr/bin/ipcs chgrp kmem /usr/bin/ipcs chmod 2755 /usr/bin/ipcs