Operating System - HP-UX
1850955 Members
4936 Online
104056 Solutions
New Discussion

Re: ftpd exits when ftphosts present

 
Henry Lima_1
New Member

ftpd exits when ftphosts present

Hi,

I'm trying to configure ftpd under HPUX 11.00, and whenever the file /etc/ftpd/ftphosts is present, ftp fails. Here's the message displayed:

Name (server40:user): user
421 Service not available, remote server has closed connection
Login failed.
No control connection for command: No such file or directory

Syslog shows it finished with signal 11:
Mar 19 15:02:11 server ftpd[24772]: exiting on signal 11

It does not matter what I put in the file, even an empty one creates this error. I even allowed full access, and I still get the error:
allow * *

The ftp version is the one that came with HP originally (ftpd.c,v 1.22 1996/04/15 05:51:04), and we have applied the newest patches for it (PHNE_21835, PHNE_23949)

Do you have any ideas?

Thanks
3 REPLIES 3
John Poff
Honored Contributor

Re: ftpd exits when ftphosts present

Hi,

What are the permissions on your /etc/ftpd/ftphosts file? What does your entry for the ftpd look like in /etc/inetd.conf? Mine looks like this:

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

Also, what does your ftp entries in /etc/services look like?

JP
Henry Lima_1
New Member

Re: ftpd exits when ftphosts present

inetd.conf:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -a -l -v

/etc/services:
ftp-data 20/tcp # File Transfer Protocol (Data)
ftp 21/tcp # File Transfer Protocol (Control)

There are no ftp entries in /var/adm/inetd.sec

BTW, if the file ftphosts is not there, the ftp works fine. Only when the file exists, the ftp does not get past the user name.
Henry Lima_1
New Member

Re: ftpd exits when ftphosts present

Something new I have noticed:
When using ftpaccess (ftpd -a) and there is a ftphosts file, the following options in ftpaccess can make the daemon end with signal 11:

- more than 2 "message" lines
- noretrieve, chmod, delete,overwrite,rename,umask,private options.

I have removed these options from the ftpaccess file and it seems to be ok.