<?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: starting a shell script with root privileges in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-shell-script-with-root-privileges/m-p/3668588#M243333</link>
    <description>You can do with another way of using shell pipe(s) as,&lt;BR /&gt;&lt;BR /&gt;(&lt;BR /&gt;echo "root"&lt;BR /&gt;sleep 2&lt;BR /&gt;echo "passwd for root"&lt;BR /&gt;sleep 2&lt;BR /&gt;echo "&lt;FULL path="" of="" script="" to="" be="" executed=""&gt;"&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "exit"&lt;BR /&gt;) | telnet localhost&lt;BR /&gt;&lt;BR /&gt;You can execute with any user when he is known about root user passwd. It will not ask root user password on command execution. You can store root user, passwd and script in shell variable and use them with cron tab scripting.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;/FULL&gt;</description>
    <pubDate>Thu, 10 Nov 2005 05:24:30 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2005-11-10T05:24:30Z</dc:date>
    <item>
      <title>starting a shell script with root privileges</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-shell-script-with-root-privileges/m-p/3668584#M243329</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I've got a simle &amp;amp; short question. &lt;BR /&gt;&lt;BR /&gt;How to start a shell script (also via cron) as a different user that is currently logged in (in praticular, how to do this with root privileges).&lt;BR /&gt;&lt;BR /&gt;Thx in advance.&lt;BR /&gt;&lt;BR /&gt;maciek</description>
      <pubDate>Thu, 10 Nov 2005 05:06:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-shell-script-with-root-privileges/m-p/3668584#M243329</guid>
      <dc:creator>Maciej Szewczykowski</dc:creator>
      <dc:date>2005-11-10T05:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: starting a shell script with root privileges</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-shell-script-with-root-privileges/m-p/3668585#M243330</link>
      <description>Hi&lt;BR /&gt;Install and configure SUDO&lt;BR /&gt;&lt;A href="http://www.courtesan.com/sudo/download.html" target="_blank"&gt;http://www.courtesan.com/sudo/download.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 10 Nov 2005 05:10:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-shell-script-with-root-privileges/m-p/3668585#M243330</guid>
      <dc:creator>LiPEnS</dc:creator>
      <dc:date>2005-11-10T05:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: starting a shell script with root privileges</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-shell-script-with-root-privileges/m-p/3668586#M243331</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1) interactive : Not possible &lt;BR /&gt;&lt;BR /&gt;2) cron : put it in the crontab of root</description>
      <pubDate>Thu, 10 Nov 2005 05:11:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-shell-script-with-root-privileges/m-p/3668586#M243331</guid>
      <dc:creator>Luk Vandenbussche</dc:creator>
      <dc:date>2005-11-10T05:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: starting a shell script with root privileges</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-shell-script-with-root-privileges/m-p/3668587#M243332</link>
      <description>To execute as a different user then use sudo utility to achive this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IF you want to start as normal user from root user then&lt;BR /&gt;&lt;BR /&gt;# su - &lt;USERNAME&gt; -c &amp;lt;script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;IT will work without asking for passwd except root user.&lt;BR /&gt;&lt;BR /&gt;If you want to start from cron with root user then you should use sudo utility to execute this.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;/USERNAME&gt;</description>
      <pubDate>Thu, 10 Nov 2005 05:14:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-shell-script-with-root-privileges/m-p/3668587#M243332</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-10T05:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: starting a shell script with root privileges</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-shell-script-with-root-privileges/m-p/3668588#M243333</link>
      <description>You can do with another way of using shell pipe(s) as,&lt;BR /&gt;&lt;BR /&gt;(&lt;BR /&gt;echo "root"&lt;BR /&gt;sleep 2&lt;BR /&gt;echo "passwd for root"&lt;BR /&gt;sleep 2&lt;BR /&gt;echo "&lt;FULL path="" of="" script="" to="" be="" executed=""&gt;"&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "exit"&lt;BR /&gt;) | telnet localhost&lt;BR /&gt;&lt;BR /&gt;You can execute with any user when he is known about root user passwd. It will not ask root user password on command execution. You can store root user, passwd and script in shell variable and use them with cron tab scripting.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;/FULL&gt;</description>
      <pubDate>Thu, 10 Nov 2005 05:24:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-shell-script-with-root-privileges/m-p/3668588#M243333</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-10T05:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: starting a shell script with root privileges</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-shell-script-with-root-privileges/m-p/3668589#M243334</link>
      <description>You can download sudo from &lt;A href="http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111" target="_blank"&gt;http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and configuration is available at, &lt;BR /&gt;&lt;A href="http://www.courtesan.com/sudo/man/sudoers.html" target="_blank"&gt;http://www.courtesan.com/sudo/man/sudoers.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Thu, 10 Nov 2005 05:31:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-shell-script-with-root-privileges/m-p/3668589#M243334</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-11-10T05:31:24Z</dc:date>
    </item>
  </channel>
</rss>

