<?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: Logout a user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790181#M943328</link>
    <description>I had a user/workstation hung up completely with an application process that I could not kill. I could not reboot the machine because it is a license server for an application and 12 other users. I had nothing to lose at this point so after warning everybody, I rlogin'd and ran:&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/dtlogin.rc stop&lt;BR /&gt;&lt;BR /&gt;Then:&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/dtlogin.rc start&lt;BR /&gt;&lt;BR /&gt;I kept an eye on things afterwards and there were no problems. Maybe someone here in the forums knows a reason why this should not be done, all I know is that it worked.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 21 Aug 2002 14:16:31 GMT</pubDate>
    <dc:creator>Ian Cameron</dc:creator>
    <dc:date>2002-08-21T14:16:31Z</dc:date>
    <item>
      <title>Logout a user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790173#M943320</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;I wanna know how can I logout a user???&lt;BR /&gt;&lt;BR /&gt;I'm logged on a workstation with root vi a rlogin. On that station there's a user who has stay connected and I need to log it out... &lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 20 Aug 2002 18:26:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790173#M943320</guid>
      <dc:creator>Jonathan Caplette</dc:creator>
      <dc:date>2002-08-20T18:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Logout a user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790174#M943321</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;You can kill that session, if you have the rights to do that. Make sure you are not throwing out somebody who is working now:&lt;BR /&gt;# who&lt;BR /&gt;# whodo&lt;BR /&gt;# ps -aef | grep user_name&lt;BR /&gt;&lt;BR /&gt;get the PID and process lists and issue kill command:&lt;BR /&gt;# man kill&lt;BR /&gt;# kill -15 (or, -13,5,9 etc)</description>
      <pubDate>Tue, 20 Aug 2002 18:28:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790174#M943321</guid>
      <dc:creator>Sajid_1</dc:creator>
      <dc:date>2002-08-20T18:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Logout a user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790175#M943322</link>
      <description>Find the login process via ps or whodo and kill it&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Tue, 20 Aug 2002 18:29:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790175#M943322</guid>
      <dc:creator>Chris Lonergan</dc:creator>
      <dc:date>2002-08-20T18:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Logout a user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790176#M943323</link>
      <description>Hi,&lt;BR /&gt;You can also find the PID (to kill) through who -u&lt;BR /&gt;Good luck,&lt;BR /&gt;Kel</description>
      <pubDate>Tue, 20 Aug 2002 18:32:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790176#M943323</guid>
      <dc:creator>Kelli Ward</dc:creator>
      <dc:date>2002-08-20T18:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Logout a user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790177#M943324</link>
      <description>Ok thanks all!!!</description>
      <pubDate>Tue, 20 Aug 2002 18:32:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790177#M943324</guid>
      <dc:creator>Jonathan Caplette</dc:creator>
      <dc:date>2002-08-20T18:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Logout a user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790178#M943325</link>
      <description>Jonathan,&lt;BR /&gt;&lt;BR /&gt;Please be sure that the user's session is idle.  The following  command will kill the user's connection which in turn, should terminate all processes spawn within the session.&lt;BR /&gt;&lt;BR /&gt;# kill -9 `who -u | grep &lt;USER_ID&gt; | awk '{print $(NF - 1)}'`&lt;BR /&gt;&lt;BR /&gt;Hai&lt;/USER_ID&gt;</description>
      <pubDate>Tue, 20 Aug 2002 18:32:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790178#M943325</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2002-08-20T18:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Logout a user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790179#M943326</link>
      <description>Always issue the kill command as a "kill -15" (Its actually the default for kill anyway so you can just kill).&lt;BR /&gt;&lt;BR /&gt;Only use the kill -9 as a last resort as you could end up with zombie processes. &lt;BR /&gt;&lt;BR /&gt;Also if the user is connected to a database such as Informix and I guess Oracle its good practice to drop the connection to the database first using the database engines commands. If you are using Informix then let me know on this link and i'll post up my kill script which checks for Informix database connections,logs the SQL, drops the connection and then kills any shell processes with a -15 then waits and if still active will then prompt for an ok to kill -9.</description>
      <pubDate>Tue, 20 Aug 2002 20:38:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790179#M943326</guid>
      <dc:creator>Nick Wickens</dc:creator>
      <dc:date>2002-08-20T20:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Logout a user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790180#M943327</link>
      <description>Hi there,&lt;BR /&gt;            To kill the user, just find the user's process ID and then use the kill -9 or 15.   You might know to use the 'who' commnad&lt;BR /&gt;&lt;BR /&gt;who -u&lt;BR /&gt;kill -9 or kill -15&lt;BR /&gt;&lt;BR /&gt;but what u might not know if that is u use &lt;BR /&gt;who -m &lt;BR /&gt;this would give u the PID for ur login.  So kill every user except the one which come from who -m.   I hope this helps&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Aug 2002 20:42:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790180#M943327</guid>
      <dc:creator>Sushil Singh_1</dc:creator>
      <dc:date>2002-08-20T20:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Logout a user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790181#M943328</link>
      <description>I had a user/workstation hung up completely with an application process that I could not kill. I could not reboot the machine because it is a license server for an application and 12 other users. I had nothing to lose at this point so after warning everybody, I rlogin'd and ran:&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/dtlogin.rc stop&lt;BR /&gt;&lt;BR /&gt;Then:&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/dtlogin.rc start&lt;BR /&gt;&lt;BR /&gt;I kept an eye on things afterwards and there were no problems. Maybe someone here in the forums knows a reason why this should not be done, all I know is that it worked.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Aug 2002 14:16:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790181#M943328</guid>
      <dc:creator>Ian Cameron</dc:creator>
      <dc:date>2002-08-21T14:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Logout a user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790182#M943329</link>
      <description>Hi Jonathan,&lt;BR /&gt;&lt;BR /&gt;I would go for the PID form "who -u" for that user's shell, and for sending SIGHUP (that's no 1), ie.e "kill -1", as that signal is used to tell a process that is has been logged off...&lt;BR /&gt;&lt;BR /&gt;Just my $0.02,&lt;BR /&gt;Wodisch&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Aug 2002 15:10:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logout-a-user/m-p/2790182#M943329</guid>
      <dc:creator>Wodisch_1</dc:creator>
      <dc:date>2002-08-21T15:10:24Z</dc:date>
    </item>
  </channel>
</rss>

