1832990 Members
2344 Online
110048 Solutions
New Discussion

Re: ftp Question

 
MSwift
Regular Advisor

ftp Question

I have machine in which i ftp localhost and type user anonymous and i get guest login ok. All our servers are set up the same way(no anonymous ftp allowed), now how does this server allows this user to login. All other server say unknown username.

Thanks

Mike
4 REPLIES 4
Steven Schweda
Honored Contributor

Re: ftp Question

> I have machine [...]

Not much of a description.

> All our servers are set up the same way
> [...]

Apparently not.

"man ftpd" may explain how to configure
anonymous FTP, depending on exactly what
"machine" is.
Vijaya Kumar_3
Respected Contributor

Re: ftp Question

Per Steve, the anonymous access details are provided in the man page (man ftpd). Here is the piece of info I found useful for you.

From "man ftpd":

In order to permit anonymous FTP, there must be an entry in the passwd(4) database for an account named ftp. The password field should be *, the group membership should be guest, and the login shell should be /bin/false. For example (assuming the guest group ID is 10):

ftp:*:500:10:anonymous ftp:/users/ftp:/bin/false

It looks like you have this account setup in the machine...


Please refer "man ftpd"
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Vijaya Kumar_3
Respected Contributor

Re: ftp Question

...but why do you use ftp at all. I think you should definitely consider using sftp or scp.

Regards
Vijay Chinnasamy
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Vishu
Trusted Contributor

Re: ftp Question

Hi MSwift,

to disbale anonymous ftp, you can try deleting the account ftp in /etc/passwd file. Anonymous ftp need this ftp account in /etc/passwd file to work.