Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


finding the People loggedt to my server last?

Posted on 1999-07-31
Medium Priority
Last Modified: 2010-03-18
there is a Linux command by which i can find out who all(i.e user's) had logged to my machine at what time on which terminal and if the logging was successful or not for how long etc. can some on e help me with it? i seem to have forgotten it?
Question by:tiwari
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 1585976
try "lastlog" ...

Expert Comment

ID: 1585977
You can use the command 'who' to see all the users that are currently logged on, or you can supply it with your wtmp file (usually under /var/log) as a command line option to see all the users that have logged on to your machine in the past.

Accepted Solution

mdgreen2 earned 60 total points
ID: 1585978
The last command is what I generally use -

last -10  (shows last 10 users to logon)

last root  (shows last times root logged on)..

The output gives the tty they logged on to, time, time span they were logged on, and where they logged on from.

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question