- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tracking down failed FTP logins
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 12:02 PM
09-02-2003 12:02 PM
I've been receiving periodic complaints from one of our customers about not being able to log into their ftp account on one of our HP-UX 11.0 servers. It seems that it works fine one day, but the account has been disable the next time they try to use it. Sometimes the time between good and bad is only a day or two. At other times, it has been a couple of weeks. I've looked through the console logs and the syslog, and I can see lots of failed login attempts, but I can't find out where they are coming from. The syslog shows the IP address for successful logins, but not, apparently, for failed logins.
Is there another place I should be looking that will show me where these failed logins are coming from? My suspicion is that is that there is a PC out there that still has an old password defined in a batch process. I'd like to be able to prove or dispel this theory.
Thanks in advance for any and all help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 12:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 12:10 PM
09-02-2003 12:10 PM
Re: Tracking down failed FTP logins
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 12:10 PM
09-02-2003 12:10 PM
Re: Tracking down failed FTP logins
This command will give you all the details you are looking for.
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 12:12 PM
09-02-2003 12:12 PM
Re: Tracking down failed FTP logins
lastb -R |grep ftp
Elena.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 12:31 PM
09-02-2003 12:31 PM
Re: Tracking down failed FTP logins
'lastb' will only work if bad login accounting is enabled. The absence of '/var/adm/btmp' means that bad login accounting is *disabled*. To enable it, as the root user, do:
# touch /var/adm/btmp
# chmod 600 /var/adm/btmp
For security reasons, only the owner (root) should have access.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 12:45 PM
09-02-2003 12:45 PM
Re: Tracking down failed FTP logins
Try running:
# inetd -l
This will turn on connection logging. Then in your /var/adm/syslog file, just prior to the FTP instance, you will see the TCP connection with the IP address.
Here is an example from my system:
Before running inetd -l
Sep 2 16:39:06 ddfin01 ftpd[21530]: User root: Login incorrect
Sep 2 16:39:07 ddfin01 ftpd[21530]: FTP session closed
After running inetd -l
Sep 2 16:39:15 ddfin01 inetd[1112]: Connection logging enabled
Sep 2 16:39:19 ddfin01 inetd[21556]: ftp/tcp: Connection from fang (10.10.2.103
) at Tue Sep 2 16:39:19 2003
Sep 2 16:39:24 ddfin01 ftpd[21556]: pam_authenticate: Authentication failed
Sep 2 16:39:24 ddfin01 ftpd[21556]: User root: Login incorrect
Sep 2 16:39:25 ddfin01 ftpd[21556]: FTP session closed
The failed IP address shows up now.
I don't know that btmp is going to get failed FTP logins.
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 12:55 PM
09-02-2003 12:55 PM
Re: Tracking down failed FTP logins
When you get the information you want, run inetd -l again to shut it off. This will list all attempted connections to services so the syslog file can get big quick.
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 08:11 PM
09-16-2003 08:11 PM
Re: Tracking down failed FTP logins
Thanks to everyone for the very helpful suggestions. I've turned on connection logging with inetd -l and it's working great. The other suggestions were excellent, also, and have given me some more tools to use in tracking down this problem.
Thanks again...
Chuck