On Sun, 18 Mar 2001, Shane McKeown wrote:
> 
> Hi guys
> 
> I am having trouble logging into my linux box through
> ftp.  I can get the ftp prompt from the linux box,
> but when either logging in with my own linux account
> or the default ftp anon account, I get 
> 
> 530 Login incorrect
> Login failed
> 
> Here are the lines from syslog:
> 
> host_access: Format error in host access file
> Mar 18 20:23:49 linux1 ftpd[1281]: rhost_ok: sethacc
> failed
> Mar 18 20:23:49 linux1 ftpd[1281]: FTP LOGIN REFUSED
> (name in /etc/ftphosts) FROM win2000.home.com
> [132.158.132.1], ftp
> 
> I have attached my /etc/ftphosts file.
> 
> Can anyone see the problem?

Yes, the error message says, your format is wrong.
'man ftphosts' states;

allow <username> <addrglob> [<addrglob> ...]
            Only allow host(s) matching <addrglob> to log in as <username>. 

It also gives an example;

      The  <addrglob>  may  be also be specified as address/cidr or address:netmask.  
For example:
       10.0.0.0/8 or 10.0.0.0:255.0.0.0  

If you were to comment out or delete your line in /etc/ftphosts you should hten
be able to login.
If you still have problems a need to restart the inetd process maybe nessacary,
see the top of /etc/inetd.conf on howto do that.

> 
> Thanks
> 
> Shane

-- 
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to