<?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: Killing users in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549055#M27822</link>
    <description>Hi&lt;BR /&gt;If it worked before and does not now then changes have been made.&lt;BR /&gt;&lt;BR /&gt;As said before have your operators deleted/changed SAM files?&lt;BR /&gt;&lt;BR /&gt;Has the passwd file been changed? &lt;BR /&gt;Do a diff against your backup passwd - &lt;BR /&gt;You do have one I hope.&lt;BR /&gt;&lt;BR /&gt;Do a full backup and then go to a last known good ignite backup and recover to that, does it now work? If so what has changed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Paula&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 06 Jul 2001 06:30:00 GMT</pubDate>
    <dc:creator>Paula J Frazer-Campbell</dc:creator>
    <dc:date>2001-07-06T06:30:00Z</dc:date>
    <item>
      <title>Killing users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549044#M27811</link>
      <description>I have been allowing my Operators to kill users through restricted SAM for the past few months, but it now fail when they use their login. It seem to only work when I login as root and execute kill -9 or through sam. The permissions are OK on the kill script. What them?</description>
      <pubDate>Thu, 05 Jul 2001 12:04:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549044#M27811</guid>
      <dc:creator>Vibert Hart</dc:creator>
      <dc:date>2001-07-05T12:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Killing users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549045#M27812</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;Use scmd command  instead....Its very simple to configure....&lt;BR /&gt;&lt;BR /&gt;You can see the man page or docs.hp.com for more details...</description>
      <pubDate>Thu, 05 Jul 2001 13:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549045#M27812</guid>
      <dc:creator>vtpaulson</dc:creator>
      <dc:date>2001-07-05T13:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Killing users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549046#M27813</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;However you kill processes, you should only use&lt;BR /&gt;kill -9 as a weapon of absolute last resort. Kill -9 does not cleanup and leaves shared memory segments and other IPC structures hanging around among other bad things. Start with kill -15, then kill -1, then kill -2. If those fail do a kill -11. Kill -11 is almost as sure a kill as kill -9 but does cleanup.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
      <pubDate>Thu, 05 Jul 2001 13:44:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549046#M27813</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-07-05T13:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Killing users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549047#M27814</link>
      <description>I am using HP-UX 10.20, I cannot find the command scmd, neither a man of it.</description>
      <pubDate>Thu, 05 Jul 2001 14:01:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549047#M27814</guid>
      <dc:creator>Vibert Hart</dc:creator>
      <dc:date>2001-07-05T14:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Killing users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549048#M27815</link>
      <description>I tried all the suggestions but none of the kill options worked, I am still getting "permission denied". Some how I feel it's some file that is to written to does not have the right permissions.&lt;BR /&gt;&lt;BR /&gt;Need futher help?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Vibert</description>
      <pubDate>Thu, 05 Jul 2001 14:19:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549048#M27815</guid>
      <dc:creator>Vibert Hart</dc:creator>
      <dc:date>2001-07-05T14:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Killing users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549049#M27816</link>
      <description>Hello Vibert,&lt;BR /&gt;&lt;BR /&gt;Has this ever worked?  Just to confirm what you're doing:&lt;BR /&gt;&lt;BR /&gt;1. a non-root user is logging in&lt;BR /&gt;2. they try to kill a session they don't own&lt;BR /&gt;3. an "permission denied" error is returned.&lt;BR /&gt;&lt;BR /&gt;If I understand correctly, unless you are root, you can only kill processes that you own.&lt;BR /&gt;&lt;BR /&gt;Is the error you are receiving like this? &lt;BR /&gt;kill: &lt;PID&gt;: Permission denied.&lt;BR /&gt;&lt;BR /&gt;If it is, then it is the kill command that saying you don't have permission to kill someone else's process.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;Jared&lt;/PID&gt;</description>
      <pubDate>Thu, 05 Jul 2001 17:47:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549049#M27816</guid>
      <dc:creator>Jared Westgate_1</dc:creator>
      <dc:date>2001-07-05T17:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Killing users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549050#M27817</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You can use sudo to allow a process (including kill) to run as root.&lt;BR /&gt;Use this link: &lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.2b1/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.2b1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Normally, it is a very bad thing to allow non-root users to kill another user's process. The bad news, it that they could kill init, cron,&lt;BR /&gt;inetd, and other vital processes.&lt;BR /&gt;&lt;BR /&gt;Clay&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jul 2001 17:53:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549050#M27817</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-07-05T17:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Killing users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549051#M27818</link>
      <description>Jared:&lt;BR /&gt;The thing is that it was working before and is working on another of my servers. Besides the Operators are doing this through restricted SAM.&lt;BR /&gt;&lt;BR /&gt;Clay:&lt;BR /&gt;&lt;BR /&gt;I really don't want to use a third party tool for this&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Vibert</description>
      <pubDate>Thu, 05 Jul 2001 18:36:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549051#M27818</guid>
      <dc:creator>Vibert Hart</dc:creator>
      <dc:date>2001-07-05T18:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Killing users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549052#M27819</link>
      <description>If it was working before, and works on other servers, you might want to consider the very real possibility that one of the operators actually did take out some important file that is now affecting SAM or the kill command.  If your servers are all the same, maybe you could compare them to see if there are any missing files.  Just a thought.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Thu, 05 Jul 2001 18:45:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549052#M27819</guid>
      <dc:creator>Mark Vollmers</dc:creator>
      <dc:date>2001-07-05T18:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Killing users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549053#M27820</link>
      <description>Also, have you rebooted since it stopped working?  If a needed process was killed, rebooting will get it back up and running.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Thu, 05 Jul 2001 19:20:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549053#M27820</guid>
      <dc:creator>Mark Vollmers</dc:creator>
      <dc:date>2001-07-05T19:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Killing users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549054#M27821</link>
      <description>Tried all of the above, none worked.</description>
      <pubDate>Thu, 05 Jul 2001 20:30:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549054#M27821</guid>
      <dc:creator>Vibert Hart</dc:creator>
      <dc:date>2001-07-05T20:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Killing users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549055#M27822</link>
      <description>Hi&lt;BR /&gt;If it worked before and does not now then changes have been made.&lt;BR /&gt;&lt;BR /&gt;As said before have your operators deleted/changed SAM files?&lt;BR /&gt;&lt;BR /&gt;Has the passwd file been changed? &lt;BR /&gt;Do a diff against your backup passwd - &lt;BR /&gt;You do have one I hope.&lt;BR /&gt;&lt;BR /&gt;Do a full backup and then go to a last known good ignite backup and recover to that, does it now work? If so what has changed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Paula&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Jul 2001 06:30:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549055#M27822</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2001-07-06T06:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Killing users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549056#M27823</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can you please post the output of &lt;BR /&gt;&lt;BR /&gt;samlog_viewer -u &lt;RESTRICTED username=""&gt; -l V -n&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Vincent&lt;/RESTRICTED&gt;</description>
      <pubDate>Fri, 06 Jul 2001 06:54:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549056#M27823</guid>
      <dc:creator>Vincent Stedema</dc:creator>
      <dc:date>2001-07-06T06:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Killing users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549057#M27824</link>
      <description>Hi there.&lt;BR /&gt;Perhaps this script can help :&lt;BR /&gt;&lt;BR /&gt;----------------------------------------------&lt;BR /&gt;script accessible by users&lt;BR /&gt;( /usr/local/bin/kill_em.sh ) :&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# this should kill off those goners who shut of their PC's&lt;BR /&gt;# in an not-so-ok fashion......&lt;BR /&gt;#&lt;BR /&gt;#  rm /usr/tmp/kill_em&lt;BR /&gt;tput clear&lt;BR /&gt;echo "Please enter User-Id ! "&lt;BR /&gt;read userid&lt;BR /&gt;export userid&lt;BR /&gt;echo "exec &amp;gt;&amp;gt; /var/tmp/kill_proc.log 2&amp;gt;&amp;amp;1" &amp;gt;&amp;gt; /var/tmp/kill_em1.sh&lt;BR /&gt;ps -ef | grep ${userid} | grep -v daemon |  grep -v root &lt;BR /&gt;&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;and add this line to the crontab of root&lt;BR /&gt;&lt;BR /&gt;00,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/bin/kill_proc1.sh&lt;BR /&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;this is the script started by crontab of root&lt;BR /&gt;( /usr/local/bin/kill_proc1.sh )&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# this should kill off those goners who shut of their PC's&lt;BR /&gt;# in an not-so-ok fashion......&lt;BR /&gt;#&lt;BR /&gt;touch  /var/tmp/kill_em1.sh&lt;BR /&gt;chmod 777 /var/tmp/kill_em1.sh&lt;BR /&gt;/var/tmp/kill_em1.sh&lt;BR /&gt;rm /var/tmp/kill_em1.sh&lt;BR /&gt;&lt;BR /&gt;------------------------------------------&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Alexander M. Ermes&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Jul 2001 07:20:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549057#M27824</guid>
      <dc:creator>Alexander M. Ermes</dc:creator>
      <dc:date>2001-07-06T07:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Killing users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549058#M27825</link>
      <description>Hi there.&lt;BR /&gt;Sorry, first script is not complete and wrong name&lt;BR /&gt;should be&lt;BR /&gt;-------------------------------------------- &lt;BR /&gt;/usr/local/bin/kill_proc.sh&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# this should kill off those goners who shut of their PC's&lt;BR /&gt;# in an not-so-ok fashion......&lt;BR /&gt;#&lt;BR /&gt;#  rm /usr/tmp/kill_em&lt;BR /&gt;tput clear&lt;BR /&gt;echo "Please enter User-Id ! "&lt;BR /&gt;read userid&lt;BR /&gt;export userid&lt;BR /&gt;echo "exec &amp;gt;&amp;gt; /var/tmp/kill_proc.log 2&amp;gt;&amp;amp;1" &amp;gt;&amp;gt; /var/tmp/kill_em1.sh&lt;BR /&gt;ps -ef | grep ${userid} | grep -v daemon |  grep -v root | &lt;BR /&gt; sort| awk '{print "kill -9 " $2}' &amp;gt;&amp;gt; /var/tmp/kill_em1.sh&lt;BR /&gt;chmod 777 /var/tmp/kill_em1.sh&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Rgds&lt;BR /&gt;Alexander M. Ermes&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Jul 2001 07:38:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549058#M27825</guid>
      <dc:creator>Alexander M. Ermes</dc:creator>
      <dc:date>2001-07-06T07:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Killing users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549059#M27826</link>
      <description>Did the permission of your kill script have a sticky bit on the user bit e.g -rwsr-xr-x. Also another possible answer, have you installed any patches which may have tightend a security loop hole. Some commands could be run by writting a script then have the SETUID set , but the commands they ran changed to look at the real and not effective User ID , e.g.the mount command was one which has effected me in the past.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Jul 2001 11:09:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-users/m-p/2549059#M27826</guid>
      <dc:creator>John Waller</dc:creator>
      <dc:date>2001-07-06T11:09:27Z</dc:date>
    </item>
  </channel>
</rss>

