I've installed Pure-ftpd
on my CentOS 6.4 server, after configuring the server I ran /etc/init.d/pure-ftpd start ; /etc/init.d/xinetd restart
and it indicates that the service has started successfully.
But when I try to connect to the server in port 21 I get the following error: ftp: connect: Connection refused
, when I run netstat
it shows that the port is not open.
My /etc/pure-ftpd.conf
look like that:
AllowAnonymousFXP no
AllowUserFXP no
AltLog clf:/var/log/pureftpd.log
AnonymousCanCreateDirs no
AnonymousCantUpload yes
AnonymousOnly no
AntiWarez yes
AutoRename no
BrokenClientsCompatibility yes
CallUploadScript yes
ChrootEveryone yes
CustomerProof yes
Daemonize yes
DisplayDotFiles yes
DontResolve yes
LimitRecursion 7500 8
MaxClientsNumber 50
MaxClientsPerIP 8
MaxDiskUsage 99
MaxIdleTime 180
MaxLoad 4
MinUID 500
NoAnonymous yes
PAMAuthentication yes
ProhibitDotFilesRead no
ProhibitDotFilesWrite no
PureDB /etc/pure-ftpd/pureftpd.pdb
SyslogFacility ftp
Umask 133:022
UseFtpUsers no
VerboseLog yes
/etc/xinetd.d/pure-ftpd
:
service ftp
{
disable = yes
socket_type = stream
wait = no
user = root
server = /usr/sbin/pure-config.pl
server_args = /etc/pure-ftpd/pure-ftpd.conf
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
}
/etc/pam.d/pure-ftpd
looks like that:
[root@amaftp ~]# cat /etc/pam.d/pure-ftpd
#%PAM-1.0
# Sample PAM configuration file for Pure-FTPd.
# Install it in /etc/pam.d/pure-ftpd or add to /etc/pam.conf
auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
auth include system-auth
auth required pam_shells.so
auth required pam_nologin.so
account include system-auth
password include system-auth
session include system-auth
[root@amaftp ~]#
I am not using pure-ftp-ldap/mysql/pgsql
.
If i run /usr/sbin/pure-ftpd
the port opens successfully and I am able to connect, but I want it to run as daemon and I want xinetd
to manage it. Nothing is getting written to the log and the log file isn't even created in /var/log
In addition, I have the exact same configuration on another server and it works there like a charm, what could be the reason for the fail?
Thanks