I installed proftpd 1.3.0 on ubuntu.
There is an error ""530 Login incorrect" displayed on ftp client when I used Cuteftp to log on this ftp server.
I just only wanted that one user can log on the ftp server.
I was wondering that whether the proftpd.conf file is relative with /etc/pam.d/proftpd file.
Here is the content of proftpd.conf file:
Code:
Include /etc/proftpd/modules.conf
# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6 off
ServerName "NAzGuL's FTP Server"
ServerType standalone
ServerIdent on "You're at home"
DeferWelcome on
MultilineRFC2228 on
DefaultServer on
ShowSymlinks off
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 2200
TimeoutLogin 20
RootLogin off
DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"
#DenyFilter \*.*/
DefaultRoot ~
UseFtpUsers off
RequireValidShell off
Port 21
MaxInstances 8
User nobody
Group nogroup
Umask 022 022
AllowOverwrite on
AllowStoreRestart on
AuthAliasOnly on
PersistentPasswd off
ExtendedLog /var/log/proftpd/ftp.log
TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log
<IfModule mod_tls.c>
TLSEngine off
</IfModule>
<IfModule mod_quota.c>
QuotaEngine on
</IfModule>
<IfModule mod_ratio.c>
Ratios on
</IfModule>
<IfModule mod_delay.c>
DelayEngine on
</IfModule>
<IfModule mod_ctrls.c>
ControlsEngine on
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
</IfModule>
<IfModule mod_ctrls_admin.c>
AdminControlsEngine on
</IfModule>
MaxClients 10
MaxClientsPerHost 8
MaxClientsPerUser 8
MaxHostsPerUser 8
#VALID LOGINS
<Limit LOGIN>
AllowGroup userftp nogroup
</Limit>
<Directory /home/ftp>
Umask 022 022
AllowOverwrite off
<Limit MKD STOR DELE XMKD RNRF RNTO RMD XRMD>
DenyAll
</Limit>
</Directory>
<Directory /home/ftp/download/*>
Umask 022 022
AllowOverwrite off
<Limit MKD STOR DELE XMKD RNEF RNTO RMD XRMD>
DenyAll
</Limit>
</Directory>
<Directory /home/ftp/upload/>
Umask 022 022
AllowOverwrite on
<Limit READ RMD DELE>
DenyAll
</Limit>
<Limit STOR CWD MKD>
AllowAll
</Limit>
</Directory>
Here is the content of /etc/pam.d/proftpd file:
Code:
#%PAM-1.0
auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
@include common-auth
# This is disabled because anonymous logins will fail otherwise,
# unless you give the 'ftp' user a valid shell, or /bin/false and add
# /bin/false to /etc/shells.
#auth required pam_shells.so
@include common-account
@include common-session
BTW: I can't use the username "userftp" to log on the local machine.
Here is the output:
Code:
ftp localhost
Connected to localhost.
220 You're at home
Name (localhost:root): userftp
331 Password required for userftp.
Password:
530 Login incorrect.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
Can anyone figure it out?