LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-10-2011, 04:35 PM   #1
dilipvp
LQ Newbie
 
Registered: May 2010
Posts: 6

Rep: Reputation: 0
How to find vsftpd users last login time.


Hi Friends,

Please help me with extracting a list of all vsftpd users with last login time.

ie,


USER NAME : LAST LOGIN TIME


Thanks in advance..

Regards,

Dileep
 
Old 03-10-2011, 04:44 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
The log file is /var/log/vsftpd.log

You could use grep, awk, or sed to do what you need to. Are you talking about all users, or just a specific user? If it is a specific user, you can just use grep, like so:
Code:
cat /var/log/vsftpd.log | grep user
I don't use vsftp, so that is a start. You could also use sort if need be. Hope that helps,

Josh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 5.5 vsftpd virtual users with pam_passwdfile, 530 login incorrect batfastad Red Hat 2 11-17-2010 06:27 AM
vsftpd & virtual users - 530 Login incorrect mjtice Linux - Software 3 12-08-2008 04:15 PM
finding login time and idle time,..etc from a list of users knavramesh Linux - Newbie 2 10-02-2008 11:55 PM
vsftpd login not working for users with no homedir phouse Linux - Server 1 10-09-2007 11:52 AM
Vsftpd revisited - Restricting users further (Less confusing this time) Korff Linux - Networking 2 06-03-2003 10:13 PM


All times are GMT -5. The time now is 02:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration