<?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: booting off users in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750505#M257680</link>
    <description>Hi John,&lt;BR /&gt;Why do you want to "logout" the user? &lt;BR /&gt;&lt;BR /&gt;If the user were chronically not logging out correctly I would discuss the issues with him/her. I have found that some users think that by simply "hitting the X in the upper right-hand corner is the same as logging out" to quote an email reply I received from one user. So sometimes it is just a matter of education. &lt;BR /&gt;&lt;BR /&gt;If it is a careless user I would discuss it with his/her supervisor, and use the stick of disabling the user's account if the continue to be careless.&lt;BR /&gt;&lt;BR /&gt;As mentioned in above posts, be cautious in killing a process, as you may get undesirable results, especially if it is an application session. Examples of this could be locked records, incomplete updates, etc.&lt;BR /&gt;&lt;BR /&gt;Richard&lt;BR /&gt;</description>
    <pubDate>Wed, 15 Mar 2006 09:01:01 GMT</pubDate>
    <dc:creator>Richard Darling</dc:creator>
    <dc:date>2006-03-15T09:01:01Z</dc:date>
    <item>
      <title>booting off users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750496#M257671</link>
      <description>morning,&lt;BR /&gt;&lt;BR /&gt;can someone please tell me how you go about logging out users that are on the system.&lt;BR /&gt;&lt;BR /&gt;thanks &lt;BR /&gt;john</description>
      <pubDate>Tue, 14 Mar 2006 06:54:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750496#M257671</guid>
      <dc:creator>JOHN TURNER_2</dc:creator>
      <dc:date>2006-03-14T06:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: booting off users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750497#M257672</link>
      <description>Hi John, &lt;BR /&gt;&lt;BR /&gt;You can kill the user's telnet or ssh sessions. &lt;BR /&gt;That is the simplest way of doing. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 14 Mar 2006 06:57:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750497#M257672</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-03-14T06:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: booting off users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750498#M257673</link>
      <description>Hi John, -ksh lines refers to the session you should kill.&lt;BR /&gt;&lt;BR /&gt;ps -ef | grep "$(who | awk '{print $2}')"&lt;BR /&gt;    root  3484   924  0 12:58:08 pts/tc    0:00 telnetd&lt;BR /&gt;    root 22452   924  0 10:43:23 pts/tb    0:00 telnetd&lt;BR /&gt;    root  3485  3484  0 12:58:08 pts/tc    0:00 -ksh&lt;BR /&gt;    root  4168  3485  1 13:01:57 pts/tc    0:00 awk {print $2}&lt;BR /&gt;    root  4167  3485  1 13:01:57 pts/tc    0:00 ps -ef&lt;BR /&gt;    root 22453 22452  0 10:43:23 pts/tb    0:00 -ksh&lt;BR /&gt;    root  4169  4168  1 13:01:57 pts/tc    0:00 who</description>
      <pubDate>Tue, 14 Mar 2006 07:06:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750498#M257673</guid>
      <dc:creator>Tiziano Contorno _</dc:creator>
      <dc:date>2006-03-14T07:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: booting off users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750499#M257674</link>
      <description>Simply as,&lt;BR /&gt;&lt;BR /&gt;get the process ID of user login as,&lt;BR /&gt;&lt;BR /&gt;# who -u&lt;BR /&gt;&lt;BR /&gt;will give the PID field number 7. Kill it as,&lt;BR /&gt;&lt;BR /&gt;# kill -9 &lt;PID&gt;&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu&lt;/PID&gt;</description>
      <pubDate>Tue, 14 Mar 2006 07:12:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750499#M257674</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-03-14T07:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: booting off users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750500#M257675</link>
      <description>hi john,&lt;BR /&gt;&lt;BR /&gt;you can run who -u&lt;BR /&gt;&lt;BR /&gt;then kill -15 the PIDs&lt;BR /&gt;&lt;BR /&gt;see also:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=622529" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=622529&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Tue, 14 Mar 2006 07:20:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750500#M257675</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2006-03-14T07:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: booting off users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750501#M257676</link>
      <description>Hi, before kill the users process i think is better look for process running:&lt;BR /&gt;&lt;BR /&gt;# ps -efl | grep -v root</description>
      <pubDate>Tue, 14 Mar 2006 07:22:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750501#M257676</guid>
      <dc:creator>Carlos Roberto Schimidt</dc:creator>
      <dc:date>2006-03-14T07:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: booting off users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750502#M257677</link>
      <description>Hi John, &lt;BR /&gt;&lt;BR /&gt;You can also stop ssh daemon and telnetd from /etc/inetd.conf, &lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/secsh stop &lt;BR /&gt;# commenting out, &lt;BR /&gt;&lt;BR /&gt;# telnet       stream tcp nowait root /usr/lbin/telnetd  telnetd&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This will ensure that, no one can login further .&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 14 Mar 2006 07:31:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750502#M257677</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-03-14T07:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: booting off users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750503#M257678</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;     You can "su" as the user ID. and run the command "kill -9 -1"&lt;BR /&gt;&lt;BR /&gt;ex:&lt;BR /&gt;&lt;BR /&gt;# su - user1&lt;BR /&gt;$ kill -9 -1&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;  Advantage with this method is, you do not require to search for all the tty's the user has logged into. Because there are scenarios wherein the user would have logged in multiple times through different tty's.&lt;BR /&gt;&lt;BR /&gt;  "kill -9 -1" will take care in killing all the process the user has spawned.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Kumar .A</description>
      <pubDate>Tue, 14 Mar 2006 07:48:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750503#M257678</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2006-03-14T07:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: booting off users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750504#M257679</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;A word of caution:  grepping for user id's can lead to unwanted results because grep returns every match available.&lt;BR /&gt;&lt;BR /&gt;A far better and safer way is to run something like this:&lt;BR /&gt;&lt;BR /&gt;PROCESSES=`UNIX95= ps -U $USERNAME | grep -v PID |awk '{ print $1 }' | sort&lt;BR /&gt;-n`&lt;BR /&gt;    for PROC in $PROCESSES&lt;BR /&gt;    do&lt;BR /&gt;       echo "\tKilling process $PROC"&lt;BR /&gt;       kill -15 $PROC&lt;BR /&gt;       sleep 1&lt;BR /&gt;       kill -9 $PROC&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Note that I have done a kill -15 to allow the process a chance to terminate normally and release its resources before resorting to the more brutal kill -9.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 14 Mar 2006 07:55:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750504#M257679</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-03-14T07:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: booting off users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750505#M257680</link>
      <description>Hi John,&lt;BR /&gt;Why do you want to "logout" the user? &lt;BR /&gt;&lt;BR /&gt;If the user were chronically not logging out correctly I would discuss the issues with him/her. I have found that some users think that by simply "hitting the X in the upper right-hand corner is the same as logging out" to quote an email reply I received from one user. So sometimes it is just a matter of education. &lt;BR /&gt;&lt;BR /&gt;If it is a careless user I would discuss it with his/her supervisor, and use the stick of disabling the user's account if the continue to be careless.&lt;BR /&gt;&lt;BR /&gt;As mentioned in above posts, be cautious in killing a process, as you may get undesirable results, especially if it is an application session. Examples of this could be locked records, incomplete updates, etc.&lt;BR /&gt;&lt;BR /&gt;Richard&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Mar 2006 09:01:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/booting-off-users/m-p/3750505#M257680</guid>
      <dc:creator>Richard Darling</dc:creator>
      <dc:date>2006-03-15T09:01:01Z</dc:date>
    </item>
  </channel>
</rss>

