Search This Blog

Showing posts with label FTP. Show all posts
Showing posts with label FTP. Show all posts

Tuesday, August 27, 2013

proftp install at CentOS 5

Fist of all, I don't like proftp!!!

# yum install proftpd

To add Virtual Users:

#vi /etc/proftpd.conf

Disable Anonymous User Login:
common out all #

#
# User ftp
# Group ftp
# UserAlias anonymous ftp
# MaxClients 10
# DisplayLogin welcome.msg
# DisplayChdir .message
#
# DenyAll
#

#




AuthOrder mod_auth_file.c
AuthUserFile /etc/proftpd/ftpd.passwd
AuthGroupFile /path/to/ftpd.group


http://www.proftpd.org/docs/howto/VirtualUsers.html
http://www.proftpd.org/docs/directives/linked/config_ref_AuthOrder.html

Then add Virtual User:


wget http://www.castaglia.org/proftpd/contrib/ftpasswd /root/ftpasswd
/root/ftpasswd --name=mds --uid=500 --gid=503 --passwd --home=/home/mds/storage --file=/etc/proftpd/ftpd.passwd --shell=/sbin/nologin
/root/ftpasswd --name=mds --group --gid=503 --file=/etc/proftpd/ftpd.group


Start the service:
# service proftpd stop
# chkconfig proftpd on

Tuesday, April 12, 2011

Speed issues on Intranet server services: SSH MySQL FTP

Just fix this issues:

Because the server is in a intranet environment.
Every time when connect to services: SSH MySQL FTP
It will take from 20 second to 6 minutes to connect into server.

Which in some case like FTP client will tell you "Time Out"

The reason cause this issues is: Reverse DNS lookup

To fix this:

1.SSH

# sed 's/#UseDNS yes/UseDNS no/g' /etc/ssh/sshd_config -i

# service sshd restart

2.MySQL

# vi /etc/my.cnf

Add:
[mysqld]
skip-name-resolve

3.FTP

# vi /etc/resolv.conf


use "#" to disable the intranet server like:


#nameserver 1.2.3.4
#nameserver 5.6.7.8




Done.