<?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 Kick/kill all users command? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/kick-kill-all-users-command/m-p/3439874#M15299</link>
    <description>&lt;BR /&gt;Is there a command I can use to kill all users on RH? Or do I have to run a script to gather all the PIDs, then kill each one wih kill -9?&lt;BR /&gt;&lt;BR /&gt;I need to do a reboot and although that will obviously kill all processes, I was hoping to kill the users first to do some maintenance.&lt;BR /&gt;&lt;BR /&gt;Any feeback greatly welcomed.&lt;BR /&gt;Regards,&lt;BR /&gt;Rob</description>
    <pubDate>Thu, 09 Dec 2004 07:14:49 GMT</pubDate>
    <dc:creator>Robert Nolan</dc:creator>
    <dc:date>2004-12-09T07:14:49Z</dc:date>
    <item>
      <title>Kick/kill all users command?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kick-kill-all-users-command/m-p/3439874#M15299</link>
      <description>&lt;BR /&gt;Is there a command I can use to kill all users on RH? Or do I have to run a script to gather all the PIDs, then kill each one wih kill -9?&lt;BR /&gt;&lt;BR /&gt;I need to do a reboot and although that will obviously kill all processes, I was hoping to kill the users first to do some maintenance.&lt;BR /&gt;&lt;BR /&gt;Any feeback greatly welcomed.&lt;BR /&gt;Regards,&lt;BR /&gt;Rob</description>
      <pubDate>Thu, 09 Dec 2004 07:14:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kick-kill-all-users-command/m-p/3439874#M15299</guid>
      <dc:creator>Robert Nolan</dc:creator>
      <dc:date>2004-12-09T07:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Kick/kill all users command?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kick-kill-all-users-command/m-p/3439875#M15300</link>
      <description>In my view, the answer is in your question. Everyone will be logged off when the system shuts down. What would be nice of you to do is sending a warning to the users by mail or wall before you take action.</description>
      <pubDate>Thu, 09 Dec 2004 07:28:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kick-kill-all-users-command/m-p/3439875#M15300</guid>
      <dc:creator>Georg Tresselt</dc:creator>
      <dc:date>2004-12-09T07:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Kick/kill all users command?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kick-kill-all-users-command/m-p/3439876#M15301</link>
      <description>Ye, thanks good call, however, I would rather kick all the users and then reboot later. So, is there a command I can use to kick all users?</description>
      <pubDate>Thu, 09 Dec 2004 07:33:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kick-kill-all-users-command/m-p/3439876#M15301</guid>
      <dc:creator>Robert Nolan</dc:creator>
      <dc:date>2004-12-09T07:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Kick/kill all users command?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kick-kill-all-users-command/m-p/3439877#M15302</link>
      <description>Hi Robert,&lt;BR /&gt;&lt;BR /&gt;try to change to init 1&lt;BR /&gt;&lt;BR /&gt;#init 1&lt;BR /&gt;&lt;BR /&gt;and in the system console make your maintenace before reboot.&lt;BR /&gt;&lt;BR /&gt;This will solve your problem, I guess.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;xyko</description>
      <pubDate>Thu, 09 Dec 2004 07:41:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kick-kill-all-users-command/m-p/3439877#M15302</guid>
      <dc:creator>xyko_1</dc:creator>
      <dc:date>2004-12-09T07:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Kick/kill all users command?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kick-kill-all-users-command/m-p/3439878#M15303</link>
      <description>I would agree with xyko on changing your system to single user mode if you really want no users on your system. You can kill a user logon, but another user can always log on without knowing you are doing the maintenance. That said, there is command to kill a user, but all users at one shot. It's fuser. Check man page for necessary switches. &lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Thu, 09 Dec 2004 10:21:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kick-kill-all-users-command/m-p/3439878#M15303</guid>
      <dc:creator>Chris Xu</dc:creator>
      <dc:date>2004-12-09T10:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Kick/kill all users command?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kick-kill-all-users-command/m-p/3439879#M15304</link>
      <description>su - $user -c kill -9 -1&lt;BR /&gt;&lt;BR /&gt;-balaji</description>
      <pubDate>Fri, 10 Dec 2004 11:59:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kick-kill-all-users-command/m-p/3439879#M15304</guid>
      <dc:creator>Balaji N</dc:creator>
      <dc:date>2004-12-10T11:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Kick/kill all users command?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kick-kill-all-users-command/m-p/3439880#M15305</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think you know you can shut the road down as root by stop the various services like telnet, ftp http etc.( # service telnetd stop ) that will keep you in multiuser mode if that's what you need to stay.&lt;BR /&gt;&lt;BR /&gt;what i usually do is " #wall " people first, friendly ;-), then go to sigle user mode.&lt;BR /&gt;&lt;BR /&gt;YJ.</description>
      <pubDate>Fri, 10 Dec 2004 14:36:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kick-kill-all-users-command/m-p/3439880#M15305</guid>
      <dc:creator>Yong_7</dc:creator>
      <dc:date>2004-12-10T14:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Kick/kill all users command?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kick-kill-all-users-command/m-p/3439881#M15306</link>
      <description>Hi Rob,&lt;BR /&gt;Here are some scripting guideline for killing all users and thier processes:&lt;BR /&gt;&lt;BR /&gt;1. use "ps -ef" and grep on 6th field (use cut) and get ttynames.&lt;BR /&gt;2. ps -t &lt;TTYNAME&gt; and grep on process ID's and collect process ID's&lt;BR /&gt;3. kill -9 &lt;PROCESS id=""&gt;&lt;BR /&gt;&lt;BR /&gt;Hope that helps.&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;/PROCESS&gt;&lt;/TTYNAME&gt;</description>
      <pubDate>Mon, 13 Dec 2004 08:58:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kick-kill-all-users-command/m-p/3439881#M15306</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-12-13T08:58:38Z</dc:date>
    </item>
  </channel>
</rss>

