![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Prevent users logging in as root | Sepia | SUN Solaris | 3 | 06-05-2008 01:45 PM |
| ssh not logging users | ranj@chn | UNIX for Advanced & Expert Users | 2 | 05-07-2007 12:49 AM |
| logging logout of users | mhm4 | SUN Solaris | 1 | 04-20-2007 04:02 PM |
| logging users activity | dozy | UNIX for Dummies Questions & Answers | 6 | 12-28-2004 10:20 AM |
| users logging on to unix boxes | irehman | UNIX for Dummies Questions & Answers | 2 | 10-16-2001 12:37 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Logging off users
What is the best way to logoff users from my Unix system? I have done a search and found that you can do a w or who - find who is on, and ps-ef | grep <user> and kill their processes. But what if you have a bunch of users and you need them off the system quickly? Killing individual processes would take too long.
Much thanks. outta. |
|
|||||
|
Code:
ps -ef|grep <user>|grep -v grep|awk '{print $2}'|xargs kill -9
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|