PDA

View Full Version : Pure-FTPd problem


io2k7
24th February 2008, 12:36
[root@home]# ftp work
Connected to work.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 12:26. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
500 This security scheme is not implemented
500 This security scheme is not implemented
KERBEROS_V4 rejected as an authentication type
Name (work:root): username
331 User username OK. Password required
Password:
530 Login authentication failed
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>


I have installed Pure-FTPd like this

yum install pure-ftpd
/usr/sbin/pure-config.pl /etc/pure-ftpd/pure-ftpd.conf
service pure-ftpd start

//i'm using the default pure-ftpd.conf

I've made the ftp usergroup

groupadd ftpgroup
useradd -g ftpgroup -d /dev/null -s /etc ftpuser


And I've added:

pure-pw useradd username -u ftpuser -d /some.path/
pure-pw mkdb


What should I do to make it work?

OS: Fedora Core 7

io2k7
24th February 2008, 12:51
pure-ftpd.conf:


ChrootEveryone yes
BrokenClientsCompatibility no
MaxClientsNumber 50
Daemonize yes
MaxClientsPerIP 8
VerboseLog no
DisplayDotFiles yes
AnonymousOnly no
NoAnonymous no
SyslogFacility ftp
DontResolve yes
MaxIdleTime 15
PAMAuthentication yes
LimitRecursion 7500 8
AnonymousCanCreateDirs no
MaxLoad 4
AntiWarez yes
Umask 133:022
MinUID 500
UseFtpUsers no
AllowUserFXP no
AllowAnonymousFXP no
ProhibitDotFilesWrite no
ProhibitDotFilesRead no
AutoRename no
AnonymousCantUpload yes
AltLog clf:/var/log/pureftpd.log
MaxDiskUsage 99
CustomerProof yes


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


pam.d/pure-ftpdwho

#%PAM-1.0
auth sufficient pam_rootok.so
auth required pam_localuser.so
account required pam_permit.so

topdog
24th February 2008, 13:49
Looking at the error in the logs is the way to begin debugging.

falko
25th February 2008, 17:54
Any errors in your logs?