<?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: Set UID Programs in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/set-uid-programs/m-p/2889196#M752053</link>
    <description>Hi Keith,&lt;BR /&gt;&lt;BR /&gt;You can give umask &amp;amp; check the umask permissions if it is 777 then it has got write permissions to the others also if u want to change the umask settings either you can edit /sbin/init.d/inetd file &amp;amp; change the umask to 022 or u can give umask 022 in /etc/profile file so that whatever files u will be creating now it will be with 722 permissions &amp;amp; the others &amp;amp; group wont have write permissions.&lt;BR /&gt;As far uid is concern i think you can check /etc/passwd for user id's.I hope this solves your problem.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rajesh G.</description>
    <pubDate>Thu, 23 Jan 2003 14:08:15 GMT</pubDate>
    <dc:creator>Rajesh G. Ghone</dc:creator>
    <dc:date>2003-01-23T14:08:15Z</dc:date>
    <item>
      <title>Set UID Programs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-uid-programs/m-p/2889192#M752049</link>
      <description>I have been asked by auditors to prove that none of my users can write to files containing programs owned by root and run in set uid mode. Does anyone know an easy way to check this?&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Keith</description>
      <pubDate>Thu, 23 Jan 2003 11:00:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-uid-programs/m-p/2889192#M752049</guid>
      <dc:creator>Keith Meloy_1</dc:creator>
      <dc:date>2003-01-23T11:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set UID Programs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-uid-programs/m-p/2889193#M752050</link>
      <description>Send the auditors to Unix Fundamentals 101?&lt;BR /&gt;&lt;BR /&gt;;^)&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 23 Jan 2003 11:12:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-uid-programs/m-p/2889193#M752050</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-01-23T11:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set UID Programs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-uid-programs/m-p/2889194#M752051</link>
      <description>find / -perm -4000 -type f -user root -exec ls -l {} \;&lt;BR /&gt;&lt;BR /&gt;will give you a list of all root setuid programs. You can then check the permissions to see if any have write permissions that they shouldn't have.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Thu, 23 Jan 2003 11:32:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-uid-programs/m-p/2889194#M752051</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2003-01-23T11:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set UID Programs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-uid-programs/m-p/2889195#M752052</link>
      <description>Hi Keith:&lt;BR /&gt;&lt;BR /&gt;# find / -type f -user 0 -perm -u+s -a \( -perm -u+w -o -perm -g+w -o -perm -o+w \) -exec ls -l {} \;&lt;BR /&gt;&lt;BR /&gt;...will find all files (-type f) where the owner is root (-user 0) with the setuid bit on AND (-a) with write permissions on either the owner OR (-o) the group OR the world.  For any files found, an 'ls' listing will be output.&lt;BR /&gt;&lt;BR /&gt;See the 'find' and 'chmod' man pages for more information.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 23 Jan 2003 11:48:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-uid-programs/m-p/2889195#M752052</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-01-23T11:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set UID Programs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-uid-programs/m-p/2889196#M752053</link>
      <description>Hi Keith,&lt;BR /&gt;&lt;BR /&gt;You can give umask &amp;amp; check the umask permissions if it is 777 then it has got write permissions to the others also if u want to change the umask settings either you can edit /sbin/init.d/inetd file &amp;amp; change the umask to 022 or u can give umask 022 in /etc/profile file so that whatever files u will be creating now it will be with 722 permissions &amp;amp; the others &amp;amp; group wont have write permissions.&lt;BR /&gt;As far uid is concern i think you can check /etc/passwd for user id's.I hope this solves your problem.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rajesh G.</description>
      <pubDate>Thu, 23 Jan 2003 14:08:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-uid-programs/m-p/2889196#M752053</guid>
      <dc:creator>Rajesh G. Ghone</dc:creator>
      <dc:date>2003-01-23T14:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set UID Programs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-uid-programs/m-p/2889197#M752054</link>
      <description>I think the problem is likely simpler than is being discussed.  Writing to a setuid file by a user other than root clears the setuid bit as a side effect of the write,&lt;BR /&gt;which removes this threat.  Example:&lt;BR /&gt;&lt;BR /&gt;# touch foo&lt;BR /&gt;# chmod 4777 foo&lt;BR /&gt;# ll foo&lt;BR /&gt;-rwsrwxrwx   1 root       sys              0 Jan 24 14:00 foo&lt;BR /&gt;# echo foobar &amp;gt;&amp;gt; foo&lt;BR /&gt;# ll foo&lt;BR /&gt;-rwsrwxrwx   1 root       sys              7 Jan 24 14:00 foo&lt;BR /&gt;# su bin&lt;BR /&gt;$ echo foobar &amp;gt;&amp;gt; foo&lt;BR /&gt;$ ll foo&lt;BR /&gt;-rwxrwxrwx   1 root       sys             14 Jan 24 14:01 foo&lt;BR /&gt;$ &lt;BR /&gt;&lt;BR /&gt;Note that the setuid bit is now cleared even though nobody did a chmod of the file after&lt;BR /&gt;the su.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Jan 2003 21:21:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-uid-programs/m-p/2889197#M752054</guid>
      <dc:creator>doug hosking</dc:creator>
      <dc:date>2003-01-24T21:21:21Z</dc:date>
    </item>
  </channel>
</rss>

