Operating System - HP-UX
1847394 Members
3018 Online
110264 Solutions
New Discussion

Re: HP:UX 10.2 FTP on local machine

 
SOLVED
Go to solution
De Marez Krist
Occasional Contributor

HP:UX 10.2 FTP on local machine

Hi,

I am using an ftp script that depending on the case does an ftp to different machines. One case is that the machine is actually the local machine. So in this case I am performing an ftp on the local machine.

This works fine, although each time a local ftp is performed, there is an entry written in the syslog.log file.

I would like to avoid that this entry is written to the syslog.log file, but haven't managed to find a reason why it does that.

The entry in the syslog.log file looks like this :
Dec 5 16:10:10 maca ftpd[16998]: connection from maca.dom.fi at Tue Dec 5 16:10:10 2000
Dec 5 16:10:10 maca ftpd[16998]: FTP LOGIN FROM maca.dom.fi, ftpsump
Dec 5 16:10:10 maca ftpd[16998]: PORT
Dec 5 16:10:11 maca ftpd[16998]: User ftpsump logged out

Anyone has an idea on how to avoid this happening ?

Thanks.
4 REPLIES 4
Edgar Matzinger
Advisor
Solution

Re: HP:UX 10.2 FTP on local machine

Hi,

you probably have an inetd.conf entry like:

ftp ...... root /usr/lbin/ftpd ftpd -l

The -l states that every log in using ftp
should be logged in the syslog file. Removing
the -l and executing inetd -c should switch
this behaviour off.

HTH, cu l8r,

Edgar.
James R. Ferguson
Acclaimed Contributor

Re: HP:UX 10.2 FTP on local machine

Hi:

You could disable the ftpd loggingto syslog entirely, if you felt this was absolutely necessary.

Edit /etc/inetd.conf and remove the "-l" flag from the ftpd entry. Then stop and restart inetd:

# /usr/sbin/inetd -k
# /usr/sbin/inetd

...JRF...
Bruce Regittko_1
Esteemed Contributor

Re: HP:UX 10.2 FTP on local machine

Hi,

I suspect that when inetd was started, it was invoked with the -l option, which enables connection logging. This logs all connection attempts from telnet, rlogin, ftp, etc., so if you disable it for ftp, you disable it for everything.

inetd gets started in /sbin/init.d/inetd and this script reads a configuration file, which I think, is /etc/rc.config.d/netdaemons. Find the inetd options line and remove the -l to disable logging when /sbin/init.d/inetd is run.

--Bruce
www.stratech.com/training
James R. Ferguson
Acclaimed Contributor

Re: HP:UX 10.2 FTP on local machine

Hi (again):

When restarting inetd, you should use the /sbin/init.d/inetd script passing a 'stop' or 'start' argument, rather than directly invoke /usr/sbin/inetd as I wrote above. The script makes sure that the umask is set to 0 before starting inetd, thus insuring that the services started inherit this value too.

Alternately, you can reread /etc/inetd.conf by issuing: /usr/sbin/inetd -c

...JRF...