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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #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).