Operating System - HP-UX
1834130 Members
3168 Online
110064 Solutions
New Discussion

Re: FTP Problems (continued)

 
SOLVED
Go to solution
David Connolly
Regular Advisor

FTP Problems (continued)

Hi,

When I try to FTP to my server, it immediately responds with "Connection Refused" - no pause, no delay, no prompt for username, nothing.

I tried kill -s SIGHUP pid where pid what the process of the inetd daemon.

I also checked /etc/ftpusers, and tried removing all entries. It made no difference,

I know it's not a router or firewall issue, because I'm FTPing from a machine on the local subnet.

When I ftp localhost from the machine itself, I get
"421 Service not available, remote server has closed connection"

There is an entry in /etc/services for FTP and the listener is there when I look using lsof -i, and netstat -an

Any help would be appreciated.
7 REPLIES 7
Niraj Kumar Verma
Trusted Contributor

Re: FTP Problems (continued)

hey !!

have you checked the following

1. /etc/ftpd/ftpusers
2. /etc/inetd.conf (ftpd -l)
3. /etc/shells
4. /etc/ftpd/ftpaccess
5. /etc/netgroups
6. /etc/nsswitch.conf (for th proper order of services file )

and also verify the port number on the host from where
you are trying to connect.

-Niraj
Niraj.Verma@philips.com
Jean-Louis Phelix
Honored Contributor
Solution

Re: FTP Problems (continued)

Hi,

Some people asked you information in your previous post, but I can't see any answer to these questions :

- check in sam, Networking and Communications, Network services that FTP is really enabled

- check that the user you are using to transfer has a 'standard' login shell. If it's not the case, you should create a /etc/shells file, then list all default shells (see man getusershell) and finally add yours.

- do you use a /var/adm/inetd.sec file ? If yes, you could try to rename it just during an ftp session.

Regards.
It works for me (© Bill McNAMARA ...)
David Connolly
Regular Advisor

Re: FTP Problems (continued)

Niraj,

Thanks. Yes I have checked these files, and they are identical to a system where FTP works.

Nothing has been altered on the system since I last FTP'd to it. It stopped working last thursday at 21:00 when I wasn't even here! No one else has access to the machine. I know when it stopped, because the monitoring agent on it (Firehunter) uses FTP to transfer it's stats to the central monitoring station, and I haven't got stats since then.

I immediately thought "Firewall", and the firewall's disk was full, which might have prevented the machine FTPing to another, but surely that could not have affected
ftp localhost?

Dave
David Connolly
Regular Advisor

Re: FTP Problems (continued)

Jean-Louis

Thanks - inetd.sec in /var/adm contained an entry limiting the ftp to the router. I changed to localhost, and can now FTP from localhost. There obviously was some change on the router.

Will investigate.
Niraj Kumar Verma
Trusted Contributor

Re: FTP Problems (continued)

Hi,

Its might sound Irrelevant ....

but have you also checked the permission of the above files ???


jsut a thought !!!
-Niraj
Niraj.Verma@philips.com
Niraj Kumar Verma
Trusted Contributor

Re: FTP Problems (continued)

Hi,

Its might sound Irrelevant ....

but have you also checked the permission of the above files ???


jut a thought !!!
-Niraj
Niraj.Verma@philips.com
David Connolly
Regular Advisor

Re: FTP Problems (continued)

Jean-Louis, Niraj

Problem solved, thanks