Hello good people.
I have been trying to get my proftpd server running for a while now. The problem seems to be that it is running, but I cant log in. I get this when I try to ftp into my server from a console.
[root@xx-xxx-xxx-xxx home]# ftp xx.xxx.xxx.xxx
Connected to xx.xxx.xxx.xxx (xx.xxx.xxx.xxx).
220 ProFTPD 1.2.10rc1 Server (Blackula FTP) [xx-xxx-xxx-xxx.cpe.ga.charter.com]
Name (xx.xxx.xxx.xxx:greg): cencen
331 Password required for cencen.
Password:
530 Login incorrect.
Login failed.
421 Service not available, remote server has closed connection
ftp> exit
So, I know that the server is accepting connections (and I also downloaded gproftpd and watched the connection come in get denied for lack of correct passwd) but I know the passwd is correct.
Here is a portion of my /etc/passwd file. I also tried with /bin/bash. No luck. I think that gproftpd is making things more complicated for me.
cencen:x:501:501:ftp-user:/home/ftp/GProftpdNoDir:/bin/false
anyone:x:502:502:ftp-user:/home/ftp/GProftpdNoDir:/bin/false
Here might be the problem. I have two proftpd.conf files. I'm not sure which one is being used. I know that one of them is an example with lines commented out, (thats the one I thought I was using) , but after I installed Gproftpd, I think it created the second one. If anyone can help tell me what is wrong, that would be great. I was using a dir /home/ftp as the home dir of the ftp users but gproftp seemed to change that also. I got the same login problem when I did that, before I installed gproftpd. I dont think I really need gproftpd, I just think I have mucked up my permissions or the group. Not really sure. If you want to drop me a line and let me know where you think I should start to solve this problem please let me know. Thanks. :-) After I search forums and google my browser to death, I can almost always find a solution to my linux problems here.. thanks guys.
gplacek (blackula)
fedora core 1
1. (/etc/proftpd.conf)
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "Blackula FTP"
ServerType standalone
DefaultServer on
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30
# Set the user and group under which the server will run.
User ftp
Group ftp
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
2. (/usr/local/etc/proftp.conf)
ServerType standalone
DefaultServer on
Umask 022
ServerName "68.117.216.152"
ServerIdent on "My FTPD"
Bind "68.117.216.152"
ServerAdmin
Admin@this.domain.topdomain
IdentLookups off
UseReverseDNS off
Port 21
PassivePorts 49152 65534
#MasqueradeAddress None
TimesGMT off
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 120
TimeoutIdle 120
User nobody
Group nobody
DirFakeUser off nobody
DirFakeGroup off nobody
DefaultTransferMode binary
AllowForeignAddress on
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores off
TransferRate RETR 30
TransferRate STOR 40
TransferRate STOU 40
TransferRate APPE 40
SystemLog /usr/local/var/log/secure
#gp_random_username_length 6
#gp_random_password_length 6
#gp_randomize_case lower
#gp_useradd_root_path /home/ftp
#gp_useradd_upload_path /upload
#gp_html_path /usr/local/var/www/ftp.html
#gp_welcome_name welcome.msg
<IfModule mod_tls.c>
TLSEngine off
TLSRequired off
TLSVerifyClient off
TLSProtocol TLSv1
TLSLog /usr/local/var/log/proftpd_tls.log
TLSRSACertificateFile /etc/gproftpd/gproftpd.pem
</IfModule>
<Limit LOGIN>
AllowUser anyone
AllowUser cencen
DenyALL
</Limit>
<Anonymous /home/ftp>
User anyone
Group anyone
AnonRequirePassword on
MaxClients 3 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
AllowOverwrite off
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
<Limit ROOT_DIR_ALLOW RETR LIST NLST MDTM SIZE STAT CWD XCWD PWD XPWD CDUP XCUP>
AllowAll
</Limit>
<Limit ROOT_DIR_DENY DELE APPE STOR STOU SITE_CHMOD SITE_CHGRP RNFR RNTO MKD XMKD RMD XRMD>
DenyAll
</Limit>
</Anonymous>
<Anonymous /home/ftp>
User cencen
Group ftp
AnonRequirePassword off
MaxClients 3 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
AllowOverwrite off
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
<Limit ROOT_DIR_ALLOW RETR LIST NLST MDTM SIZE STAT CWD XCWD PWD XPWD CDUP XCUP>
AllowAll
</Limit>
<Limit ROOT_DIR_DENY DELE APPE STOR STOU SITE_CHMOD SITE_CHGRP RNFR RNTO MKD XMKD RMD XRMD>
DenyAll
</Limit>
<Directory /home/ftp/ftp/upload/*>
AllowOverwrite on
<Limit UPLOAD_DIR_ALLOW LIST NLST STOR STOU APPE RETR MKD XMKD STAT MDTM PWD XPWD SIZE CWD XCWD CDUP XCUP SITE >
AllowAll
</Limit>
<Limit UPLOAD_DIR_DENY RNFR RNTO DELE RMD XRMD SITE_CHMOD SITE_CHGRP >
DenyAll
</Limit>
</Directory>
</Anonymous>