I followed this tutorial [
http://ubuntuforums.org/showthread.p...+server+howto] trying to set up proftpd. I'm using Slackware 13.1, but I had assumed most of the tutorial was all relevant still.
Using the default proftpd.conf file, I was able to do anonymous login, but I was hoping to use the conf file in the tutorial to only allow certain users, so it currently looks like this:
Quote:
# To really apply changes reload proftpd after modifications.
AllowOverwrite on
AuthAliasOnly off
# Choose here the user alias you want !!!!
#UserAlias sauron userftp
ServerName "ChezFrodon"
ServerType standalone
DeferWelcome on
MultilineRFC2228 on
DefaultServer on
ShowSymlinks off
TimeoutNoTransfer 600
TimeoutStalled 100
TimeoutIdle 2200
DisplayChdir .message
ListOptions "-l"
RequireValidShell off
TimeoutLogin 20
RootLogin off
# It's better for debug to create log files ;-)
ExtendedLog /var/log/ftp.log
TransferLog /var/log/xferlog
SystemLog /var/log/syslog.log
#DenyFilter \*.*/
# I don't choose to use /etc/ftpusers file (set inside the users you want to ban, not useful for me)
UseFtpUsers off
# Allow to restart a download
AllowStoreRestart on
# Port 21 is the standard FTP port, so you may prefer to use another port for security reasons (choose here the port you want)
Port 21
# 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 8
# Set the user and group that the server normally runs at.
User nobody
Group nogroup
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
PersistentPasswd off
MaxClients 8
MaxClientsPerHost 8
MaxClientsPerUser 8
MaxHostsPerUser 8
# Display a message after a successful login
AccessGrantMsg "welcome !!!"
# This message is displayed for each access good or not
ServerIdent on "you're at home"
# Set /home/FTP-shared directory as home directory
DefaultRoot /home/FTP-shared
# Lock all the users in home directory, ***** really important *****
DefaultRoot ~
MaxLoginAttempts 5
#VALID LOGINS
<Limit LOGIN>
AllowUser userftp
</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>
|
The UserAlias stuff is currently commented out as I was seeing if changing that had any effect, but it hasn't.
The ftp.log file just keeps showing
Quote:
localhost UNKNOWN nobody [19/Jul/2010:21:35:11 -0500] "USER userftp" 331 -
localhost UNKNOWN nobody [19/Jul/2010:21:35:15 -0500] "PASS (hidden)" 530 -
localhost UNKNOWN nobody [19/Jul/2010:21:35:15 -0500] "SYST" 215 -
localhost UNKNOWN nobody [19/Jul/2010:21:35:19 -0500] "QUIT" 221 -
|
This may be pretty obvious, but I really don't know a whole lot about Linux. I've been trying to work with Slackware as I thought that it was going to be the best distro to really learn things on. I recently got Samba set up without any trouble, but I can't at all figure this ftp thing out. If anyone could help me, I'd greatly appreciate it. (I've seen this topic a lot, so I don't mean to be annoying by starting another thread about it, but so far the research has not helped me get this working.) If there's any other information I can post to help diagnose the problem, please let me know.
Thanks so much.