The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Dig command output? sujathab UNIX for Dummies Questions & Answers 2 03-24-2009 10:09 AM
Output of ps command vibhor_agarwali UNIX for Dummies Questions & Answers 15 06-21-2007 02:23 AM
Output Problem Eric_Bakken UNIX for Dummies Questions & Answers 3 12-09-2005 03:16 PM
problem with who -u output V.V.KUMAR UNIX for Advanced & Expert Users 0 04-20-2005 10:31 PM
How can I cut output of command?? darthur UNIX for Dummies Questions & Answers 2 04-11-2002 02:50 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-10-2005
V.V.KUMAR V.V.KUMAR is offline
Registered User
  
 

Join Date: Apr 2005
Posts: 9
Post Problem With Who-u Command Output

I am Using SCo UNIX ver 5 and using korn shell. When I kill a process ID of user login, the process gets killed but the who -u command output shows the login name ,tty, and PID of the killed process along with other active process. The details of the killed process is listed on the who -u output and the idle time is also incremented even though no such process exists.This development took place 2 weeks before. I suspect that some file related to who output is not refreshed. I wish to know what files are altered on killing the process and how to rectify the same?
  #2 (permalink)  
Old 04-10-2005
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Are you sure that you are killing the login process of the user? If you are just killing a process run by the user, that does not mean that you are logging the user out.

If you want to kill a user's session, you have to kill the login shell. These can be seen by using the 'ps' command:
Code:
ps -ef | grep -e -sh -e -csh -e -ksh |grep -v grep
Then you can kill the -<shell> processes. Check if this works.

And also, (in solaris) the /var/adm/utmpx file is used by who to check logged in users. If you are using a different os, just check the man page for utmpx (it will be present in almost all of 'em).
  #3 (permalink)  
Old 04-11-2005
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
  
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 637
or this ... (change "auser" to actual username of user) ...
Code:
kill -9 `ps -ef|awk '/\-.sh/ && /auser/ {print $2}'`
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:06 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0