<?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: shell trick? ( how to enable ENV file processing in suid script?) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-trick-how-to-enable-env-file-processing-in-suid-script/m-p/3077698#M810671</link>
    <description>Decided not to use aliases but create functions instead and export FPATH to the child shell.&lt;BR /&gt;&lt;BR /&gt;Tried c-wrapper but it still had euid!=uid&lt;BR /&gt;&lt;BR /&gt;Thanks everybody.</description>
    <pubDate>Thu, 25 Sep 2003 15:28:43 GMT</pubDate>
    <dc:creator>Sergey_27</dc:creator>
    <dc:date>2003-09-25T15:28:43Z</dc:date>
    <item>
      <title>shell trick? ( how to enable ENV file processing in suid script?)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-trick-how-to-enable-env-file-processing-in-suid-script/m-p/3077691#M810664</link>
      <description>Hi, &lt;BR /&gt;Is there a way for ksh to make it ignore privileged mode? I have a suid script which has 3 lines:&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;export ENV=/home/user/env&lt;BR /&gt;exec ksh&lt;BR /&gt;&lt;BR /&gt;and of course ksh senses that uid != ruid and sets privileged mode automatically. There seem to be nothing in the man pages which can force ksh to process ENV file. &lt;BR /&gt;Any suggestions?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sergey.&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Sep 2003 15:10:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-trick-how-to-enable-env-file-processing-in-suid-script/m-p/3077691#M810664</guid>
      <dc:creator>Sergey_27</dc:creator>
      <dc:date>2003-09-24T15:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: shell trick? ( how to enable ENV file processing in suid script?)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-trick-how-to-enable-env-file-processing-in-suid-script/m-p/3077692#M810665</link>
      <description>Sergey,&lt;BR /&gt;We get around most of the hassle of environment by including those variables necessary with the script being executed.&lt;BR /&gt;Doesn't exactly answer your question bu it is a solution that works for us.&lt;BR /&gt;&lt;BR /&gt;Best of luck.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;dl</description>
      <pubDate>Wed, 24 Sep 2003 16:22:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-trick-how-to-enable-env-file-processing-in-suid-script/m-p/3077692#M810665</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2003-09-24T16:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: shell trick? ( how to enable ENV file processing in suid script?)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-trick-how-to-enable-env-file-processing-in-suid-script/m-p/3077693#M810666</link>
      <description>Yes, but what I really need is having aliases loaded.</description>
      <pubDate>Wed, 24 Sep 2003 16:24:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-trick-how-to-enable-env-file-processing-in-suid-script/m-p/3077693#M810666</guid>
      <dc:creator>Sergey_27</dc:creator>
      <dc:date>2003-09-24T16:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: shell trick? ( how to enable ENV file processing in suid script?)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-trick-how-to-enable-env-file-processing-in-suid-script/m-p/3077694#M810667</link>
      <description>The way I tend to get around this is with a nasty little "C" wrapper to run the script.  Make the C program setuid instead.  In your case, make this call your first script.  The UID and GID of the script will still be that of the user unless you also add a setuid(0) in there somewhere.something like                                           #include &lt;UNISTD.H&gt;main(){        execl("/mypath/myscript", "myscript",0);}&lt;/UNISTD.H&gt;</description>
      <pubDate>Thu, 25 Sep 2003 00:32:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-trick-how-to-enable-env-file-processing-in-suid-script/m-p/3077694#M810667</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-25T00:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: shell trick? ( how to enable ENV file processing in suid script?)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-trick-how-to-enable-env-file-processing-in-suid-script/m-p/3077695#M810668</link>
      <description>Hi Sergey,&lt;BR /&gt;&lt;BR /&gt;It works for me.&lt;BR /&gt;&lt;BR /&gt;My Script looks like this&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;ENV=$HOME/alias.file&lt;BR /&gt;export ENV&lt;BR /&gt;exec ksh&lt;BR /&gt;&lt;BR /&gt;alias.file must have read-permissions !!&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;  Roland&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2003 07:25:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-trick-how-to-enable-env-file-processing-in-suid-script/m-p/3077695#M810668</guid>
      <dc:creator>RolandH</dc:creator>
      <dc:date>2003-09-25T07:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: shell trick? ( how to enable ENV file processing in suid script?)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-trick-how-to-enable-env-file-processing-in-suid-script/m-p/3077696#M810669</link>
      <description>We have a line in /etc/profile or $HOME/.profile&lt;BR /&gt; &lt;BR /&gt;ENV=/.kshrc&lt;BR /&gt; &lt;BR /&gt;Aliases work.&lt;BR /&gt; &lt;BR /&gt;SEP</description>
      <pubDate>Thu, 25 Sep 2003 07:27:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-trick-how-to-enable-env-file-processing-in-suid-script/m-p/3077696#M810669</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-25T07:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: shell trick? ( how to enable ENV file processing in suid script?)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-trick-how-to-enable-env-file-processing-in-suid-script/m-p/3077697#M810670</link>
      <description>I guess the will explain my prolem:&lt;BR /&gt;man ksh&lt;BR /&gt;-p      Disables processing of the $HOME/.profile&lt;BR /&gt;file and uses the file /etc/suid_profile&lt;BR /&gt;instead of the ENV file.  This mode is on&lt;BR /&gt;whenever the effective uid (gid) is not&lt;BR /&gt;equal to the real uid (gid).  Turning this&lt;BR /&gt;off causes the effective uid and gid to be&lt;BR /&gt;set to the real uid and gid.&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2003 08:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-trick-how-to-enable-env-file-processing-in-suid-script/m-p/3077697#M810670</guid>
      <dc:creator>Sergey_27</dc:creator>
      <dc:date>2003-09-25T08:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: shell trick? ( how to enable ENV file processing in suid script?)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-trick-how-to-enable-env-file-processing-in-suid-script/m-p/3077698#M810671</link>
      <description>Decided not to use aliases but create functions instead and export FPATH to the child shell.&lt;BR /&gt;&lt;BR /&gt;Tried c-wrapper but it still had euid!=uid&lt;BR /&gt;&lt;BR /&gt;Thanks everybody.</description>
      <pubDate>Thu, 25 Sep 2003 15:28:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-trick-how-to-enable-env-file-processing-in-suid-script/m-p/3077698#M810671</guid>
      <dc:creator>Sergey_27</dc:creator>
      <dc:date>2003-09-25T15:28:43Z</dc:date>
    </item>
  </channel>
</rss>

