- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to trace 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
Discussions
Discussions
Discussions
Forums
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
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
тАО10-30-2002 07:57 AM
тАО10-30-2002 07:57 AM
How to trace ftp logins?
We noticed someone trying to ftp our server using cronjob (every one hour) with incorrect login attempt. We were able to see those failure attempts in /var/adm/syslog/syslog.log file as shown below: (truncated message)
============================================
Oct 30 10:09:45 ma02cp02 ftpd[5168]: pam_authenticate: Authentication failed 134217759
Oct 30 10:09:45 ma02cp02 ftpd[5168]: User xioadm: Login incorrect
Oct 30 10:09:45 ma02cp02 ftpd[5168]: FTP session closed
============================================
Can anyone tell us, how to trace who is trying to ftp our server. Is there any other log file available to trace this issue.
Thanks in advance,
Have a great day!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2002 07:59 AM
тАО10-30-2002 07:59 AM
Re: How to trace ftp logins?
There isn't an entry somewhere in the syslog at the same time that says this?? For example:
Jul 20 11:56:23 scsdata1 inetd[3379]: ftp/tcp: Connection from p3EE24E2C.dip.t-d
ialin.net (62.226.78.44) at Sat Jul 20 11:56:23 2002
Here is an example from my syslog file where this individual tried to make a connection (He was later refused because of our tcp wrappers). The next step we take is that we go to the web-based whois site:
http://www.swhois.net/
To determine who it is and report the attempt according to its severity.
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2002 08:01 AM
тАО10-30-2002 08:01 AM
Re: How to trace ftp logins?
At HP-UX 11.00 add
the options -l -L -v
At HP-UX 10.20 add the option -l -v
to ftpd in /etc/inetd.conf
After editing let inetd reread with inetd -c
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2002 08:04 AM
тАО10-30-2002 08:04 AM
Re: How to trace ftp logins?
Add logging options to the 'ftpd' as defined in the 'ftpd' daemon service line in 'etc/inetd.conf'. See the man pages for 'ftpd (1M)'. You can also enable use of the '/etc/ftpd/ftpaccess' file's specifications for this purpose. See 'man 4 ftpaccess' for more information.
Remember to reread your 'inetd' file changes with:
# /usr/sbin/inetd -c
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2002 02:04 PM
тАО10-30-2002 02:04 PM
Re: How to trace ftp logins?
Thanks for your responses.
I modified "inetd.conf" file and reread conf file using "inetd -c", but I can see only successful login address in syslog file. Those unsuccessful ftp logins not showing IP address.
I also modified "ftpaccess" file to "supresshostname" as "no". That doesn't worked out.
Finally I grepped "ftpd" continuously at the time of ftp login and got the IP address as shown below. Is there any other method to trace IP address of unsuccessful ftp logins.
Thanks
=============================================
root 25215 23102 1 13:09:44 ttyp3 0:00 grep ftpd
root 25218 23102 1 13:09:44 ttyp3 0:00 grep ftpd
root 25221 23102 1 13:09:44 ttyp3 0:00 grep ftpd
root 25225 23102 1 13:09:44 ttyp3 0:00 grep ftpd
root 25222 2313 2 13:09:44 ? 0:00 ftpd: 10.220.227.99: connected
root 25228 23102 1 13:09:44 ttyp3 0:00 grep ftpd
root 25222 2313 2 13:09:44 ? 0:00 ftpd: 10.220.227.99: connected
root 25231 23102 1 13:09:44 ttyp3 0:00 grep ftpd
root 25222 2313 2 13:09:44 ? 0:00 ftpd: 10.220.227.99: connected
root 25234 23102 1 13:09:44 ttyp3 0:00 grep ftpd
=============================================
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2002 06:05 AM
тАО10-31-2002 06:05 AM
Re: How to trace ftp logins?
For your last question, I have two thoughts:
1. Do you have the following entry in your /etc/ftpd/ftpaccess file:
log commands
2. I would do a grep on refused in the syslog.log, which is what I do to get the refused logins. If you implemented the options for ftpd in inetd.conf the others suggested, you should see output if it is a refused connect.
Hope this helps
Chris