How to configure the vsftpd to maintain the last login information at Red Hat Enterprise Linux 7 and 8

Solution Verified - Updated -

Issue

  • Configure the vsftpd to display the user session information under lastlog command output as below.
# lastlog -u testuser
Username         Port     From             Latest
testuser         ftp      localhost        Thu Jul 22 13:24:31 -0400 2021

Environment

  • Red Hat Enterprise Linux (RHEL) 7
  • Red Hat Enterprise Linux (RHEL) 8
  • vsftpd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content