Log-Off a user | 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.

Log-Off a user

AIX


Tags
load average, performance

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-20-2005
aldowsary aldowsary is offline
Registered User
 
Join Date: Apr 2005
Last Activity: 23 June 2008, 5:08 AM EDT
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Log-Off a user

Hi everybody,
First, Is the command who show all the users connected to my system? Is it equivalent to the commands last |grep still.
Second, How I can log-off a specific user?
Note: My system is AIX 4.3
Sponsored Links
    #2  
Old 06-21-2005
malcom's Avatar
malcom malcom is offline
Registered User
 
Join Date: Jul 2003
Last Activity: 11 March 2008, 11:47 AM EDT
Location: Germany
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

yes with who you see who is looged in to your system ... the same is for finger if installed ...

To 'logout' a user, simply kill the shell of them ...

/malcom
Sponsored Links
    #3  
Old 06-23-2005
aldowsary aldowsary is offline
Registered User
 
Join Date: Apr 2005
Last Activity: 23 June 2008, 5:08 AM EDT
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you malcom for your response. Sorry, I didn't have much experince in UNIX. What do you mean by 'killing the shell'?, and how I can kill the shell?
    #4  
Old 06-26-2005
DogDay's Avatar
DogDay DogDay is offline
Registered User
 
Join Date: Jun 2005
Last Activity: 19 August 2014, 8:56 PM EDT
Location: /dev/null
Posts: 83
Thanks: 0
Thanked 1 Time in 1 Post
You want to logoff the user 'john'.

Code:
# w
  11:57AM   up 46 days,  18:02,  2 users,  load average: 1.01, 1.06, 1.06
User     tty          login@       idle      JCPU      PCPU what
john  pts/0       12:40PM       4:38         0         0 rlogin
bob   pts/1       11:57AM          0         0         0 /usr/bin/w64

You must kill the process of his shell. Every user logs into some kind of shell. In the below example john's shell is seen as '-ksh'. That is the process you need to kill.


Code:
# ps -ef|grep john
 john 290912 385216   0 12:40:44  pts/0  0:00 rlogin somenode
 john 323806 569424   0 12:40:35  pts/0  0:00 -ksh

We see the process id, or PID, is 323806. We pass that number to the 'kill' command with a signal of '-9' or TERMINATE.


Code:
# kill -9 323806

And he should be gone. Also consider the fact that whatever they are working on when you do this is lost if they have not saved their work.

I recommend you get your system admin to do this.
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
Update LDIF User info based on Test User Certs ID's Macdaddy99 Shell Programming and Scripting 3 07-14-2010 11:25 AM
Determining if user is local-user in /etc/passwd or LDAP user ckmehta UNIX for Advanced & Expert Users 5 04-28-2010 03:24 AM
root user command in shell script execute as normal user mnmonu Shell Programming and Scripting 3 10-19-2009 07:42 AM
Difference between : Locked User Account & Disabled User Accounts in Linux ? avklinux UNIX for Dummies Questions & Answers 3 02-06-2009 08:01 PM
How do i change to super user then revert back to ordinary user ,using shell script? wrapster Shell Programming and Scripting 3 06-04-2008 07:11 AM



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