<?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: Restricted command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-command/m-p/4339423#M343318</link>
    <description>Thanks all&lt;BR /&gt;I'll try it out, But regarding sudo, I am using Hpux9.0, &amp;amp; I dont have sudo installed &lt;BR /&gt;and dont know whether sudo is available/compatible for this verion of Hp-ux.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
    <pubDate>Fri, 16 Jan 2009 19:39:56 GMT</pubDate>
    <dc:creator>suju</dc:creator>
    <dc:date>2009-01-16T19:39:56Z</dc:date>
    <item>
      <title>Restricted command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-command/m-p/4339420#M343315</link>
      <description>How a normal user can run a script of (containing root privileaged commands) in profile or .profile&lt;BR /&gt;So that the owner of the process (script &lt;BR /&gt;#ps -aef |grep scriptname) will be root&lt;BR /&gt;The script should run in the background.&lt;BR /&gt;Need ur help&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Fri, 16 Jan 2009 18:10:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-command/m-p/4339420#M343315</guid>
      <dc:creator>suju</dc:creator>
      <dc:date>2009-01-16T18:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-command/m-p/4339421#M343316</link>
      <description>This can be done with sudo.&lt;BR /&gt;&lt;BR /&gt;Run this command to edit the sudoers file:&lt;BR /&gt;visudo&lt;BR /&gt;&lt;BR /&gt;Add something like this (for 'user1' as example):&lt;BR /&gt;user1  ALL = NOPASSWD:  /path/to/script.sh&lt;BR /&gt;&lt;BR /&gt;Then in the user1 .profile, add this:&lt;BR /&gt;sudo /path/to/script.sh &amp;amp;&lt;BR /&gt;&lt;BR /&gt;This will run the command as root in the background.  For more information on sudo:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gratisoft.us/sudo/" target="_blank"&gt;http://www.gratisoft.us/sudo/&lt;/A&gt;</description>
      <pubDate>Fri, 16 Jan 2009 19:16:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-command/m-p/4339421#M343316</guid>
      <dc:creator>Autocross.US</dc:creator>
      <dc:date>2009-01-16T19:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-command/m-p/4339422#M343317</link>
      <description>so, you have some script, lets say "a", and&lt;BR /&gt;1) you want to run that during the login process&lt;BR /&gt;2) as "root"&lt;BR /&gt;3) in the background???&lt;BR /&gt;&lt;BR /&gt;you might (and its not guaranteed to work), set the suid bits on the script in question and make the owner of the script "a" root.  HOWEVER, in most cases, the OS will ignore suid on shell scripts (as I recall).  AND, even if it works now, it might not in the future.&lt;BR /&gt;&lt;BR /&gt;sudo should allow you to specify that *anybody* can run that specific script w/o requiring a password, and thus might be a viable option.&lt;BR /&gt;&lt;BR /&gt;If you state what the goal of this, rather then how you intend to implement it, you might get better responses.</description>
      <pubDate>Fri, 16 Jan 2009 19:16:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-command/m-p/4339422#M343317</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-01-16T19:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-command/m-p/4339423#M343318</link>
      <description>Thanks all&lt;BR /&gt;I'll try it out, But regarding sudo, I am using Hpux9.0, &amp;amp; I dont have sudo installed &lt;BR /&gt;and dont know whether sudo is available/compatible for this verion of Hp-ux.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Jan 2009 19:39:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-command/m-p/4339423#M343318</guid>
      <dc:creator>suju</dc:creator>
      <dc:date>2009-01-16T19:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-command/m-p/4339424#M343319</link>
      <description>Yes, it compatible &lt;BR /&gt;&lt;A href="http://www.gratisoft.us/sudo/install.html" target="_blank"&gt;http://www.gratisoft.us/sudo/install.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and you could download the source code&lt;BR /&gt;&lt;A href="http://hpux.asknet.de/hppd/hpux/Sysadmin/sudo-1.6.9p19/" target="_blank"&gt;http://hpux.asknet.de/hppd/hpux/Sysadmin/sudo-1.6.9p19/&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Jan 2009 20:00:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-command/m-p/4339424#M343319</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-01-16T20:00:59Z</dc:date>
    </item>
  </channel>
</rss>

