<?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: permissions problem using setuid in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-problem-using-setuid/m-p/4163938#M320324</link>
    <description>Hi Ray:&lt;BR /&gt;&lt;BR /&gt;On one hand you say, "Shared executable "astsql".  Then you say, "script "astsql".&lt;BR /&gt;&lt;BR /&gt;Setuid *binaries* work whereas setuid *scripts* will may not.  On 11.23 and later, you must set the kernel parameter 'secure_sid_scripts' appropriately for setuid *scripts* to function.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B3921-60631/secure_sid_scripts.5.html" target="_blank"&gt;http://docs.hp.com/en/B3921-60631/secure_sid_scripts.5.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 18 Mar 2008 17:55:32 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-03-18T17:55:32Z</dc:date>
    <item>
      <title>permissions problem using setuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-problem-using-setuid/m-p/4163937#M320323</link>
      <description>Hello all,&lt;BR /&gt;here is one for the teachers.&lt;BR /&gt;&lt;BR /&gt;I have a log directory /var/logs/oracle (775) and files within it all owned by "oracle:batchgrp" with 664 permissions.&lt;BR /&gt;&lt;BR /&gt;Group "batchgrp" includes user "batchrun".&lt;BR /&gt;Shared executable "astsql" has the following permissions (notice the setuid):&lt;BR /&gt;-r-sr-xr-x   1 batchrun   batchgrp&lt;BR /&gt;&lt;BR /&gt;How come script "astsql" fails to write to the log directory when run by user "oracle" (unless user "oracle" is also part of group "batchgrp").&lt;BR /&gt;&lt;BR /&gt;User oracle owns the files and user batchrun belongs to group "batchgrp" which has write permissions on the files.&lt;BR /&gt;&lt;BR /&gt;I know I have a solution but I don't understand why?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;RayB</description>
      <pubDate>Tue, 18 Mar 2008 17:39:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-problem-using-setuid/m-p/4163937#M320323</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2008-03-18T17:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: permissions problem using setuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-problem-using-setuid/m-p/4163938#M320324</link>
      <description>Hi Ray:&lt;BR /&gt;&lt;BR /&gt;On one hand you say, "Shared executable "astsql".  Then you say, "script "astsql".&lt;BR /&gt;&lt;BR /&gt;Setuid *binaries* work whereas setuid *scripts* will may not.  On 11.23 and later, you must set the kernel parameter 'secure_sid_scripts' appropriately for setuid *scripts* to function.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B3921-60631/secure_sid_scripts.5.html" target="_blank"&gt;http://docs.hp.com/en/B3921-60631/secure_sid_scripts.5.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 18 Mar 2008 17:55:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-problem-using-setuid/m-p/4163938#M320324</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-03-18T17:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: permissions problem using setuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-problem-using-setuid/m-p/4163939#M320325</link>
      <description>My error, it is a shared executable and we are running 11.11:&lt;BR /&gt;$ ll astsql&lt;BR /&gt;-r-sr-xr-x   1 batchrun   batchgrp     24576 Jul 28  2005 astsql&lt;BR /&gt;$ file astsql&lt;BR /&gt;astsql:         PA-RISC1.1 shared executable dynamically linked -not stripped&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;It's a c program that finds a username/password and runs a sql script using sqlplus.</description>
      <pubDate>Tue, 18 Mar 2008 18:16:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-problem-using-setuid/m-p/4163939#M320325</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2008-03-18T18:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: permissions problem using setuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-problem-using-setuid/m-p/4163940#M320326</link>
      <description>your suid bit is only set for uid.&lt;BR /&gt;&lt;BR /&gt;oracle with run as uid batchrun but still have the same oracle default group. What group(s) is oracle uid a member of ?  If not batchgrp then set the guid bit or just add oracle user to the batchgrp and control the file creation by setting guid on the directory to force all file creation to batchgrp.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Mar 2008 20:21:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-problem-using-setuid/m-p/4163940#M320326</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2008-03-18T20:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: permissions problem using setuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-problem-using-setuid/m-p/4163941#M320327</link>
      <description>Tim,&lt;BR /&gt;&lt;BR /&gt;I know making oracle part of the batchgrp group will work.&lt;BR /&gt;But I'm trying to understand:&lt;BR /&gt;- why user oracle has to be member of the batchgrp eventhough it owns the target file and directory&lt;BR /&gt;- why user batchrun cannot update a file even though it belongs to a group that can.&lt;BR /&gt;&lt;BR /&gt;This is a concept question and I can't find a manual that explains it clearly.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;RayB</description>
      <pubDate>Wed, 19 Mar 2008 11:38:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-problem-using-setuid/m-p/4163941#M320327</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2008-03-19T11:38:05Z</dc:date>
    </item>
  </channel>
</rss>

