<?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: Can you help me with this script? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/can-you-help-me-with-this-script/m-p/2575472#M858221</link>
    <description>The commands you are using seem to be ok. Think it has to do wtih the necessary rights.&lt;BR /&gt;&lt;BR /&gt;Only root is allowed to kill another users process. If you are not root while running this script, you can't kill this process.&lt;BR /&gt;&lt;BR /&gt;So make sure you are root while running this script or use something like sudo. You can find sudo at the porting center (e.g. &lt;A href="http://hpux.asknet.de)" target="_blank"&gt;http://hpux.asknet.de)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
    <pubDate>Wed, 05 Sep 2001 12:52:13 GMT</pubDate>
    <dc:creator>Stefan Schulz</dc:creator>
    <dc:date>2001-09-05T12:52:13Z</dc:date>
    <item>
      <title>Can you help me with this script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-you-help-me-with-this-script/m-p/2575467#M858216</link>
      <description />
      <pubDate>Wed, 05 Sep 2001 11:25:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-you-help-me-with-this-script/m-p/2575467#M858216</guid>
      <dc:creator>Ted Flanders</dc:creator>
      <dc:date>2001-09-05T11:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with this script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-you-help-me-with-this-script/m-p/2575468#M858217</link>
      <description>Oops, sorry about the double post.</description>
      <pubDate>Wed, 05 Sep 2001 11:28:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-you-help-me-with-this-script/m-p/2575468#M858217</guid>
      <dc:creator>Ted Flanders</dc:creator>
      <dc:date>2001-09-05T11:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with this script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-you-help-me-with-this-script/m-p/2575469#M858218</link>
      <description>Nice, I double posted and they left this one, and deleted the post with all of the info in it.&lt;BR /&gt;I am trying to make a script to allow other users (ie. Branch Mgrs.) to shut and kill -9 users.  The problem is, it doesnt allow users to shut or kill other users, just allows root to do so.  Is there any way that I can make this work?  Of course I dont want to give users root access. Thanks for your help.</description>
      <pubDate>Wed, 05 Sep 2001 12:36:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-you-help-me-with-this-script/m-p/2575469#M858218</guid>
      <dc:creator>Ted Flanders</dc:creator>
      <dc:date>2001-09-05T12:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with this script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-you-help-me-with-this-script/m-p/2575470#M858219</link>
      <description>Hi Ted,&lt;BR /&gt;&lt;BR /&gt;You can use: SUDO that is an application for allow to other users to run commands with superuser permissions.&lt;BR /&gt;You can download it from:&lt;BR /&gt;     &lt;A href="http://hpux.connect.org.uk/" target="_blank"&gt;http://hpux.connect.org.uk/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Sep 2001 12:45:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-you-help-me-with-this-script/m-p/2575470#M858219</guid>
      <dc:creator>Manuel Plaza</dc:creator>
      <dc:date>2001-09-05T12:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with this script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-you-help-me-with-this-script/m-p/2575471#M858220</link>
      <description>Hi Ted,&lt;BR /&gt;I cant read your script (not found error??), but since its a script why not configure sudo (download it from your Archive Center..) for your users to execute your script as root...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;&lt;BR /&gt;Victor</description>
      <pubDate>Wed, 05 Sep 2001 12:46:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-you-help-me-with-this-script/m-p/2575471#M858220</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2001-09-05T12:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with this script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-you-help-me-with-this-script/m-p/2575472#M858221</link>
      <description>The commands you are using seem to be ok. Think it has to do wtih the necessary rights.&lt;BR /&gt;&lt;BR /&gt;Only root is allowed to kill another users process. If you are not root while running this script, you can't kill this process.&lt;BR /&gt;&lt;BR /&gt;So make sure you are root while running this script or use something like sudo. You can find sudo at the porting center (e.g. &lt;A href="http://hpux.asknet.de)" target="_blank"&gt;http://hpux.asknet.de)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
      <pubDate>Wed, 05 Sep 2001 12:52:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-you-help-me-with-this-script/m-p/2575472#M858221</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2001-09-05T12:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with this script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-you-help-me-with-this-script/m-p/2575473#M858222</link>
      <description>Ted,&lt;BR /&gt;&lt;BR /&gt;sudo is the best option anyway to work as root as it provides good logging facility as well controlling mechanism.&lt;BR /&gt;&lt;BR /&gt;If your needs are immediate, then you can write a small script called kill_it and call it from your script. &lt;BR /&gt;&lt;BR /&gt;Now your kill_it will be something like this&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;#Only uid xxx can run this script&lt;BR /&gt;if [ `uid` -ne xxxxx ]&lt;BR /&gt;then&lt;BR /&gt;echo "You need to be with uid xxxx"&lt;BR /&gt;exit 1&lt;BR /&gt;else&lt;BR /&gt;kill -9 $1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Now, create a group called and place this user in it. Let's call the group as sugroup.&lt;BR /&gt;&lt;BR /&gt;Now as root change the permissions as below&lt;BR /&gt;&lt;BR /&gt;#chown root:sugroup kill_it&lt;BR /&gt;#chmod 4510 kill_it&lt;BR /&gt;&lt;BR /&gt;This script will run as root taking an argument.&lt;BR /&gt;&lt;BR /&gt;Now you can pass on the pids as the arguments to this and kill the users.&lt;BR /&gt;&lt;BR /&gt;Do you think this helps you for the timebeing?.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 05 Sep 2001 13:35:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-you-help-me-with-this-script/m-p/2575473#M858222</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-09-05T13:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with this script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-you-help-me-with-this-script/m-p/2575474#M858223</link>
      <description>Hi&lt;BR /&gt;Besides using SUDO you can also try using restriced SAM option.&lt;BR /&gt;Create a custom application in sam with your script and allow only required users to run only this application. While creating the application you can specify that the script need to run as root.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Prashant Deshpande.</description>
      <pubDate>Wed, 05 Sep 2001 13:52:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-you-help-me-with-this-script/m-p/2575474#M858223</guid>
      <dc:creator>Deshpande Prashant</dc:creator>
      <dc:date>2001-09-05T13:52:09Z</dc:date>
    </item>
  </channel>
</rss>

