Search This Blog

Wednesday, September 8, 2010

Enable FTP Service.

Enable FTP Service:

To check FTP is running or not:
This can be done by loging into the server or any other machine connected to server.All you need to do is type a command called.
ftp
Example:
If 10.180.18.222 is my server's ip address.

# ftp 10.180.18.222
ftp: connect: Connection refused
ftp>

Above output shows that ftp is not enabled on my server.

To enable the ftp you need to edit gssftp file under
/etc/xinetd.d directory.

You should modify disable parameter to no.

# cat gssftp
# default: off
# description: The kerberized FTP server accepts FTP connections \
# that can be authenticated with Kerberos 5.
service ftp
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/kerberos/sbin/ftpd
server_args = -l -a
log_on_failure += USERID
disable = no
}

Once you have modified the file you should restart xinetd
#/etc/rc.d/init.d/xinetd restart


To check if FTP is running or not:
# ftp 10.180.18.222
Connected to 10.180.18.222.
220 TomcatServer FTP server (Version 5.60) ready.
334 Using authentication type GSSAPI; ADAT must follow
GSSAPI accepted as authentication type
GSSAPI error major: Unspecified GSS failure. Minor code may provide more information
GSSAPI error minor: No credentials cache found
GSSAPI error: initializing context
GSSAPI authentication failed
334 Using authentication type KERBEROS_V4; ADAT must follow
KERBEROS_V4 accepted as authentication type
Kerberos V4 krb_mk_req failed: You have no tickets cached
Name (10.180.18.222:root):


Above output shows now you can able to use ftp.

1 comment:

  1. I don't know if anyone can help but I have a problem on a server and we cannot ftp to it as root or any user except anonymous. If I log onto the server itself and type "ftp localhost", I get the messages in your comment above and I enter the username as root but it then displays "password" and then skips to the next line without letting you enter one. If I try to ftp from my laptop as root it allows you to enter the username and password but does not connect, it eventually times out.

    Can you please help with this problem?

    To reply to me please email kevin.greenhill@oleo-savery.com.

    Thanks,

    Kev

    ReplyDelete