- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: FTP Messages - Filling up Syslog
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
04-22-2003 08:29 AM
04-22-2003 08:29 AM
Could someone please assist. On 2 of our servers, messages like the following keep filling up the Syslog. I do not know what is generating the messages as these do not seem to be normal FTP session messages. Any help will be appreciated. I am leaving now and will check your responses tomorrow. Many thanks
Manoj
Apr 22 02:16:13 GFTS ftpd[14070]: FTP session closed
Apr 22 02:16:58 GFTS ftpd[14071]: FTP session closed
Apr 22 02:17:28 GFTS ftpd[14076]: FTP session closed
Apr 22 02:17:43 GFTS ftpd[14077]: FTP session closed
Apr 22 02:18:13 GFTS ftpd[14083]: FTP session closed
Apr 22 02:18:29 GFTS ftpd[14084]: FTP session closed
Apr 22 02:18:58 GFTS ftpd[14085]: FTP session close
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 08:51 AM
04-22-2003 08:51 AM
Re: FTP Messages - Filling up Syslog
You appear to have enabled logging for the 'ftpd' daemon. Logging is enabled by adding the '-l' argument to the 'ftpd' daemon when it is spawned by 'inetd'. Your '/etc/inetd.conf' file will contain a specification something like this:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
Eliminate the '-l' from the line above and restart 'inetd' thusly:
# /usr/sbin/inetd -c
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 08:55 AM
04-22-2003 08:55 AM
Re: FTP Messages - Filling up Syslog
In addition, you may have other ftp commands being logged that you want to suppress. These would be armed with the '-L' argument for the ftp daemon as I described above. See the 'ftpd(1M)' man pages for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 08:55 AM
04-22-2003 08:55 AM
SolutionNow, if you donot want any ftp access to be logged on the syslog, then you can use the -l option with ftpd daemon on /etc/inetd.conf file. I wouldn't do this since it's a security risk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 09:00 AM
04-22-2003 09:00 AM
Re: FTP Messages - Filling up Syslog
Tjis lets you break logging down into real, guest and anonymous users (the log you posted looks like it came from an ftp monitoring engine, so eliminating anonymous ftp logging might fix your problem).
See the ftpaccess and ftpd man pages, esp. "log commands" and "log transfers" inftpaccess.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 09:30 AM
04-22-2003 09:30 AM
Re: FTP Messages - Filling up Syslog
Solar Winds installed. Either one will produce a similar end result.
Solution: don't log or
grep -v "FTP session" syslog.log> tmpfile; cp tmpfile syslog.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 09:50 AM
04-22-2003 09:50 AM
Re: FTP Messages - Filling up Syslog
mail.debug /var/adm/syslog/mail.log
daemon.info;mail.none /var/adm/syslog/daemon.log
Then restart syslogd
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 11:09 AM
04-22-2003 11:09 AM
Re: FTP Messages - Filling up Syslog
Its easy to turn off but that makes dealing with a ftp security issue that much harder after the fact.
So, I recommend leaving it on and making sure /var has enough space.
I have a weekly job to manage syslog on servers that don't get booted that often.
It does two things.
It copies off the old file with a date to the /backups filesystem. There is another cron job that cleans that up after 4 weeks.
The next step is to clean syslog.
> /var/adm/syslog/syslog.log
Solves the problem, maintains some level of auditing. Turning off the -l on the ftpd daemon has caused people to get written up in security audits.
The real long term answer is to stop using ftp at all. Here is the software and docs you need to start that long process.
Secure shell
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=T1471AA
A cookbook is attached.
Even more is my general security product list, which is way beyond the scope of your question, but I'm on a roll.
Bastille Security hardening
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B6849AA
Perl which the above needs.
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=PERL
Security Patch Check
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B6834AA
TCP Wrappers
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=TCPWRAP
IDS/9000 (Intrusion Detection Sytstem)
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=J5083AA
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 02:16 PM
04-22-2003 02:16 PM
Re: FTP Messages - Filling up Syslog
You may have these set up:
In your /etc/inetd.conf file you could have the entry for ftp as
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -lv
Remove the 'v' and 'l' if you are not satisfied. You may wish to check what your other systems have as well.
There is one further thing, in /etc/syslog.conf, have local5 removed if you have it.
If you make changes to either of these files, then run these, they will get the daemons to re-read current configs.
for inetd.conf
# inetd -c
for syslog.conf
# kill -HUP `cat /var/run/syslog.pid`
HTH
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 03:40 AM
04-23-2003 03:40 AM