Logging off users | Unix Linux Forums | AIX

  Go Back    

AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Logging off users


aix, unix

Closed Thread    
Thread Tools Search this Thread Display Modes
Old 02-08-2007
outtacontrol outtacontrol is offline
Registered User
Join Date: Aug 2005
Last Activity: 15 January 2009, 5:38 PM EST
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
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.

Sponsored Links
Old 02-09-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
Join Date: Nov 2006
Last Activity: 18 December 2014, 3:49 AM EST
Location: Bulgaria
Posts: 1,420
Thanks: 0
Thanked 6 Times in 6 Posts

ps -ef|grep <user>|grep -v grep|awk '{print $2}'|xargs kill -9

This will kill processes by this user, but if you want to kick him out - get this one
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Logging out users Wahmed9 Shell Programming and Scripting 2 03-10-2010 06:19 PM
ssh not logging users ranj@chn UNIX for Advanced & Expert Users 2 05-07-2007 01:49 AM
logging logout of users mhm4 Solaris 1 04-20-2007 05: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 01:37 PM

All times are GMT -4. The time now is 05:11 AM.