<?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: Sticky Bit in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sticky-bit/m-p/2775083#M75745</link>
    <description>victor,&lt;BR /&gt;i think the problem is with your umask. if this is set so that files are created with group write permissions (eg 02) then the sticky bit will be ignored and any user in the group can remove the file. Or if the file has global write any user regardless of group can remove it.&lt;BR /&gt;The sticky bit is only useful for files where user has full write to the directory but read only on files in it. without the sticky bit set the user can override the individual file permissions and remove these. But if sticky bit is set &amp;amp; files are read only then the file permissions cannot be overridden.&lt;BR /&gt;&lt;BR /&gt;Suggest you set umask 022&lt;BR /&gt;</description>
    <pubDate>Tue, 30 Jul 2002 06:44:04 GMT</pubDate>
    <dc:creator>Pierce Byrne_1</dc:creator>
    <dc:date>2002-07-30T06:44:04Z</dc:date>
    <item>
      <title>Sticky Bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sticky-bit/m-p/2775080#M75742</link>
      <description>We are using HP-UX 11x. I created a test directory under my home drive. I used the chmod 1777 command and set the test directory so the any users can share files but cannot delete files that does not belong to them. All users belong the the group=users. I created a file in the test directory and login as another user. The user that was login can still delete the file created by me. Can someone please provide me with the instructions on how I can setup a shared directory in which users can share but cannot delete files created by other users</description>
      <pubDate>Mon, 29 Jul 2002 21:14:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sticky-bit/m-p/2775080#M75742</guid>
      <dc:creator>Victor Chow</dc:creator>
      <dc:date>2002-07-29T21:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sticky Bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sticky-bit/m-p/2775081#M75743</link>
      <description>As far as I can tell you did everything right&lt;BR /&gt;&lt;BR /&gt;I did same as you&lt;BR /&gt;&lt;BR /&gt;login user1&lt;BR /&gt;mkdir /tmp/test&lt;BR /&gt;chmod 1777 /tmp/test&lt;BR /&gt;touch /tmp/test/sample&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;login user2&lt;BR /&gt;mv /tmp/test/sample /tmp/test/newname&lt;BR /&gt;mv: cannot move `sample' to `newname': Not owner&lt;BR /&gt;&lt;BR /&gt;Check that the second user you logged in as does not have the same UID number as the first user.&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Jul 2002 21:34:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sticky-bit/m-p/2775081#M75743</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-07-29T21:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sticky Bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sticky-bit/m-p/2775082#M75744</link>
      <description>check the permissions on the file in the directory.&lt;BR /&gt;&lt;BR /&gt;I've done this before:&lt;BR /&gt;&lt;BR /&gt;[foo@melhpux1] /home/foo-&amp;gt; cd /tmp/test&lt;BR /&gt;[foo@melhpux1] /tmp/test-&amp;gt; ll&lt;BR /&gt;total 0&lt;BR /&gt;-rw-rw----   1 sup2000    group            0 Jul 30 09:24 aaa&lt;BR /&gt;[foo@melhpux1] /tmp/test-&amp;gt; more aaa&lt;BR /&gt;[foo@melhpux1] /tmp/test-&amp;gt; echo "hi" &amp;gt; aaa&lt;BR /&gt;[foo@melhpux1] /tmp/test-&amp;gt; more aaa&lt;BR /&gt;hi&lt;BR /&gt;[foo@melhpux1] /tmp/test-&amp;gt; rm aaa&lt;BR /&gt;rm: aaa not removed.  Permission denied&lt;BR /&gt;[foo@melhpux1] /tmp/test-&amp;gt; cd ..&lt;BR /&gt;[foo@melhpux1] /tmp-&amp;gt; ll | grep test&lt;BR /&gt;drwxr-xr-t   2 root       group           96 Jul 30 09:24 test&lt;BR /&gt;[foo@melhpux1] /tmp-&amp;gt;</description>
      <pubDate>Mon, 29 Jul 2002 22:21:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sticky-bit/m-p/2775082#M75744</guid>
      <dc:creator>Scott Van Kalken</dc:creator>
      <dc:date>2002-07-29T22:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sticky Bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sticky-bit/m-p/2775083#M75745</link>
      <description>victor,&lt;BR /&gt;i think the problem is with your umask. if this is set so that files are created with group write permissions (eg 02) then the sticky bit will be ignored and any user in the group can remove the file. Or if the file has global write any user regardless of group can remove it.&lt;BR /&gt;The sticky bit is only useful for files where user has full write to the directory but read only on files in it. without the sticky bit set the user can override the individual file permissions and remove these. But if sticky bit is set &amp;amp; files are read only then the file permissions cannot be overridden.&lt;BR /&gt;&lt;BR /&gt;Suggest you set umask 022&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jul 2002 06:44:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sticky-bit/m-p/2775083#M75745</guid>
      <dc:creator>Pierce Byrne_1</dc:creator>
      <dc:date>2002-07-30T06:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sticky Bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sticky-bit/m-p/2775084#M75746</link>
      <description>Take a look at kernel patch PHKL_24216.&lt;BR /&gt;Depending on which 'x' in '11x' that may be&lt;BR /&gt;relevant.</description>
      <pubDate>Tue, 30 Jul 2002 18:19:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sticky-bit/m-p/2775084#M75746</guid>
      <dc:creator>doug hosking</dc:creator>
      <dc:date>2002-07-30T18:19:56Z</dc:date>
    </item>
  </channel>
</rss>

