<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ipcrm -m does not remove shared memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ipcrm-m-does-not-remove-shared-memory/m-p/3458968#M209760</link>
    <description>Just as the rw permissions have nothing to do with the removability of a file (that is determined by the permissions of the directory), these permissions have nothing to do with the ability to remove a shmid. The shmid can only be removed by the owner or a user with sufficient privlidges (e.g root). Man shmctl for deatails.</description>
    <pubDate>Sun, 09 Jan 2005 20:46:08 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2005-01-09T20:46:08Z</dc:date>
    <item>
      <title>ipcrm -m does not remove shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ipcrm-m-does-not-remove-shared-memory/m-p/3458967#M209759</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have the following segments in shared memory, displayed when I do a "ipcs -m"&lt;BR /&gt;&lt;BR /&gt;m          0 0x411c0189 --rw-rw-rw-    root      root&lt;BR /&gt;m          1 0x4e0c0002 --rw-rw-rw-      root      root&lt;BR /&gt;m          2 0x412050fa --rw-rw-rw-      root      root&lt;BR /&gt;m    2031620 0x766d615a --rw-rw-rw-      paap      dev&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The first three (ids: 0, 1 and 2) are system generated. The last one I created in a program and gave it rw permissions to it.&lt;BR /&gt;&lt;BR /&gt;I wish to remove the shared memory under a different user that created it - so I execute:&lt;BR /&gt;&lt;BR /&gt;"/usr/bin/ipcrm -m 2031620"&lt;BR /&gt;&lt;BR /&gt;When I log in as a different user to that that created the shared memory and execute the ipcrm command I get the following:&lt;BR /&gt;&lt;BR /&gt;ipcrm: shmid(2031620): permission denied&lt;BR /&gt;&lt;BR /&gt;I am using HP Itanium, 11.23. I can remove the shared memory on the PA-RISC 11.00 when logged in as a different user.&lt;BR /&gt;&lt;BR /&gt;I would have thought that the -rw-rw-rw would have given all users permissions to delete it.&lt;BR /&gt;&lt;BR /&gt;I can remove the shared memory using ipcrm when logged onto as root or as the owner of the shared memory "paap". But why can't I remove it as a completely different user because its got rw permissions ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can anyone please help out here ?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;JUP</description>
      <pubDate>Sun, 09 Jan 2005 20:12:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ipcrm-m-does-not-remove-shared-memory/m-p/3458967#M209759</guid>
      <dc:creator>JUP</dc:creator>
      <dc:date>2005-01-09T20:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: ipcrm -m does not remove shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ipcrm-m-does-not-remove-shared-memory/m-p/3458968#M209760</link>
      <description>Just as the rw permissions have nothing to do with the removability of a file (that is determined by the permissions of the directory), these permissions have nothing to do with the ability to remove a shmid. The shmid can only be removed by the owner or a user with sufficient privlidges (e.g root). Man shmctl for deatails.</description>
      <pubDate>Sun, 09 Jan 2005 20:46:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ipcrm-m-does-not-remove-shared-memory/m-p/3458968#M209760</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-01-09T20:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: ipcrm -m does not remove shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ipcrm-m-does-not-remove-shared-memory/m-p/3458969#M209761</link>
      <description>Thanks - after further investigation I found it only worked on the PA-RISC because of the switch uid command we used.&lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;</description>
      <pubDate>Sun, 09 Jan 2005 21:11:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ipcrm-m-does-not-remove-shared-memory/m-p/3458969#M209761</guid>
      <dc:creator>JUP</dc:creator>
      <dc:date>2005-01-09T21:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: ipcrm -m does not remove shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ipcrm-m-does-not-remove-shared-memory/m-p/3458970#M209762</link>
      <description>Some day ago. I encounter with same case. I spent long time to wait and execute ipcrm -m again. (I know rebooting can solve this problem :))) ).&lt;BR /&gt;</description>
      <pubDate>Sun, 09 Jan 2005 23:06:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ipcrm-m-does-not-remove-shared-memory/m-p/3458970#M209762</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2005-01-09T23:06:59Z</dc:date>
    </item>
  </channel>
</rss>

