<?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: suid on directory does not change ownership to that of owner of directory ?? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/suid-on-directory-does-not-change-ownership-to-that-of-owner-of/m-p/4290490#M336733</link>
    <description>Thanks to all who replied.&lt;BR /&gt;&lt;BR /&gt;The goal was to monitor user activities (once they sudo to application acct) so if they rm a file, we (sys admins and mgrs) can look in the history log who did what. Mgmt wanted to prevent users from cleaning their own .sh_history file after some nefarious activity.&lt;BR /&gt;&lt;BR /&gt;But seems like we can't do it so may have to suggest powerbroker tool (which costs money).&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Mon, 20 Oct 2008 19:37:01 GMT</pubDate>
    <dc:creator>Sammy_2</dc:creator>
    <dc:date>2008-10-20T19:37:01Z</dc:date>
    <item>
      <title>suid on directory does not change ownership to that of owner of directory ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/suid-on-directory-does-not-change-ownership-to-that-of-owner-of/m-p/4290484#M336727</link>
      <description>HPUX 11.11&lt;BR /&gt;&lt;BR /&gt;# ls -ld /app/test&lt;BR /&gt;drwsrwsr-x   2 subir01    eteam         1024 Oct 20 11:58 /app/test&lt;BR /&gt;&lt;BR /&gt;If user "clyde18" touches file in above dir, I was expecting the owner to be subir01 (according to SUID set on directory) . Why is OS setting owner to that of the userid who touched file. &lt;BR /&gt;$ id&lt;BR /&gt;uid=12216(clyde18) gid=206(eteam)&lt;BR /&gt;$ touch /app/test/myperms&lt;BR /&gt;&lt;BR /&gt;$ ls -ld /app/test/myperms&lt;BR /&gt;-rw-rw----   1 clyde18    eteam            0 Oct 20 12:11 /app/test/myperms&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for help in advance.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Oct 2008 16:17:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/suid-on-directory-does-not-change-ownership-to-that-of-owner-of/m-p/4290484#M336727</guid>
      <dc:creator>Sammy_2</dc:creator>
      <dc:date>2008-10-20T16:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: suid on directory does not change ownership to that of owner of directory ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/suid-on-directory-does-not-change-ownership-to-that-of-owner-of/m-p/4290485#M336728</link>
      <description>Because that is the behavior now.&lt;BR /&gt;Setting u+s does not make files created in&lt;BR /&gt;that directory owned by owner of the directory. Only the group if g+s is set.&lt;BR /&gt;&lt;BR /&gt;The man pages are not kept up to date&lt;BR /&gt;nowadays.</description>
      <pubDate>Mon, 20 Oct 2008 16:30:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/suid-on-directory-does-not-change-ownership-to-that-of-owner-of/m-p/4290485#M336728</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2008-10-20T16:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: suid on directory does not change ownership to that of owner of directory ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/suid-on-directory-does-not-change-ownership-to-that-of-owner-of/m-p/4290486#M336729</link>
      <description>Hi Sammy:&lt;BR /&gt;&lt;BR /&gt;The directory's *group* owner is what will be conferred to the newly created file when the the directory has its 'setgid' bit set.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 20 Oct 2008 16:35:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/suid-on-directory-does-not-change-ownership-to-that-of-owner-of/m-p/4290486#M336729</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-20T16:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: suid on directory does not change ownership to that of owner of directory ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/suid-on-directory-does-not-change-ownership-to-that-of-owner-of/m-p/4290487#M336730</link>
      <description>Thanks Jerry and JRF.&lt;BR /&gt;Then do you know of a way so I can redirect user's history file to a directory so he can not delete or edit it. Right now, the .sh_history file is owned by the user by default and so he can modify it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;.profile of user "dp" below&lt;BR /&gt;======&lt;BR /&gt;HISTFILE="$ARCHIVE_DIR/.sh_history_$LOGNAME_PID_$$"  ; export HISTFILE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;output in $ARCHIVE_DIR&lt;BR /&gt;&lt;BR /&gt;Right now, the dp user can edit this file and delete the commands he entered.&lt;BR /&gt;&lt;BR /&gt;-rw-------   1 dp         escript        174 Oct 20 14:33 .sh_history_DP_PID_8243&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 20 Oct 2008 18:35:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/suid-on-directory-does-not-change-ownership-to-that-of-owner-of/m-p/4290487#M336730</guid>
      <dc:creator>Sammy_2</dc:creator>
      <dc:date>2008-10-20T18:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: suid on directory does not change ownership to that of owner of directory ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/suid-on-directory-does-not-change-ownership-to-that-of-owner-of/m-p/4290488#M336731</link>
      <description>If the user can't edit the history file, how is he/she supposed to use the history functionality?</description>
      <pubDate>Mon, 20 Oct 2008 18:44:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/suid-on-directory-does-not-change-ownership-to-that-of-owner-of/m-p/4290488#M336731</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-10-20T18:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: suid on directory does not change ownership to that of owner of directory ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/suid-on-directory-does-not-change-ownership-to-that-of-owner-of/m-p/4290489#M336732</link>
      <description>Hi (again) Sammy:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Then do you know of a way so I can redirect user's history file to a directory so he can not delete or edit it. Right now, the .sh_history file is owned by the user by default and so he can modify it.&lt;BR /&gt;&lt;BR /&gt;You're asking for your cake and to eat it too.&lt;BR /&gt;&lt;BR /&gt;The shell needs to have write-access to the directory in which you tell it to create a history file.  Directory write-access infers the ability to delete a file.  File write-ability means that all or some the data within can be munged.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 20 Oct 2008 18:48:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/suid-on-directory-does-not-change-ownership-to-that-of-owner-of/m-p/4290489#M336732</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-20T18:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: suid on directory does not change ownership to that of owner of directory ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/suid-on-directory-does-not-change-ownership-to-that-of-owner-of/m-p/4290490#M336733</link>
      <description>Thanks to all who replied.&lt;BR /&gt;&lt;BR /&gt;The goal was to monitor user activities (once they sudo to application acct) so if they rm a file, we (sys admins and mgrs) can look in the history log who did what. Mgmt wanted to prevent users from cleaning their own .sh_history file after some nefarious activity.&lt;BR /&gt;&lt;BR /&gt;But seems like we can't do it so may have to suggest powerbroker tool (which costs money).&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 20 Oct 2008 19:37:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/suid-on-directory-does-not-change-ownership-to-that-of-owner-of/m-p/4290490#M336733</guid>
      <dc:creator>Sammy_2</dc:creator>
      <dc:date>2008-10-20T19:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: suid on directory does not change ownership to that of owner of directory ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/suid-on-directory-does-not-change-ownership-to-that-of-owner-of/m-p/4290491#M336734</link>
      <description>&amp;gt;JRF: The shell needs to have write-access to the directory in which you tell it to create a history file.&lt;BR /&gt;&lt;BR /&gt;No it doesn't if you manually create an empty file there.  But this doesn't really help. &lt;BR /&gt;&lt;BR /&gt;&amp;gt;File write-ability means that all or some the data within can be munged.&lt;BR /&gt;&lt;BR /&gt;Unfortunately this is what will allow the data to be munged.&lt;BR /&gt;What Sammy needs is a file with append only access, a pipe.  Unfortunately that won't work as a history file.</description>
      <pubDate>Tue, 21 Oct 2008 06:46:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/suid-on-directory-does-not-change-ownership-to-that-of-owner-of/m-p/4290491#M336734</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-21T06:46:52Z</dc:date>
    </item>
  </channel>
</rss>

