The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
logged out users roshni Post Here to Contact Site Administrators and Moderators 1 07-06-2007 12:02 AM
how many users logged trichyselva Shell Programming and Scripting 4 05-05-2006 11:17 PM
Users logged in through which NIC cburtgo IP Networking 5 04-28-2006 03:59 PM
All tcp/ip users are logged out Docboyeee IP Networking 2 03-13-2003 10:07 AM
Information about users who have logged. rooh UNIX for Dummies Questions & Answers 2 12-26-2001 03:42 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 02-26-2006
Registered User
 

Join Date: Aug 2005
Posts: 229
How to know what users are logged in to account

hello all
say im logged in to account ar root , but I can't change any thing there ( like username )
if someone is already logged in also . how can I know who is ( user name ) also connected to the user im using ?
Reply With Quote
Forum Sponsor
  #2  
Old 02-28-2006
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
If both are logged in as root, you could possibly tell from the output of the who command - just associate the terminal connection with the userid (found with ps -ef|grep root). Then, with the who command, look for that terminal to see where they are coming from - you would then have to look on that server to try to find who was logging in as root (if this is what they are doing).

If a person logs in as root on console, then you don't have a way of doing this (unless there are console logs which may or may not have information on the person).

If you are in charge of this server, you should consider setting up the root account so it can only be accessed from console - so anyone signing in can not log in as root (and this will make it easier to find who is using it via the su logs).
Reply With Quote
  #3  
Old 02-28-2006
Registered User
 

Join Date: Feb 2005
Location: Canada
Posts: 131
If your people are using a MS Windows PC, it is pretty easy. Shoot the command who -u | grep user and look at the output :

unix:/ # who -u | grep user
user pts/t3f Feb 28 09:36 . 13390 10.1.1.30

or anything you get. If your UNIX box talks to DNS or is DNS you might see the Machine name instead of IP address. Then you can browse the Windows machine and look at the most recent account and find out you is using that account. Hope it is what you are looking for.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:16 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0