Web Hosting Talk







View Full Version : ProFTPd Setup Help


ckevin
10-16-2001, 04:28 AM
Hello,

I've installed the latest ver. of ProFTPd with my RH7.1. I don't know if the config file is modified correctly but I just got the error message from my CuteFTP screen: ERROR:> Control connection closed.

I think the port 21 is opened and the ProFTPd is run under xinetd. I just have no idea why it can't work properly.

Please advise.

Kevin


# 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 "ProFTPD"
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 that the server normally runs at.
User ftp
Group ftp

# Normally, we want files to be overwriteable.
<Directory /*>
AllowOverwrite on
</Directory>

# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias ftp

# Limit the maximum number of anonymous logins
MaxClients 20

# 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>

</Anonymous>

allera
10-16-2001, 08:33 AM
It's running in standalone, which I don't think involves xinitd (but I could be wrong, I don't use RH). It should be running as its own process. Check to make sure the process is running. If not, start it and then make sure it's running again. Everything else looks ok. Also make sure the user and group ftp exists.

JTY
10-16-2001, 09:24 AM
..Servertype standalone... means that it's being run directly, e.g. not from xinetd or inetd...

ckevin
10-16-2001, 10:40 AM
allera, JTY, thanks your kind help! I now run it in standalone, but I still have a few easy questions...

(1) What command if I want to Stop and Restart the ProFTPd?
(2) If standalone, What bootup command or sh scripts do I need so the FTP can be started automatically when my server restart?
(3) I have my config file in etc/proftpd.conf as above but I think the ProFTP don't use my config, cause it said,

220 ProFTPD 1.2.2 Server (ProFTPD Default Installation) [My.server.name]

and just go to the /home/USER dir. (same as wu-ftp) but don't go to /home/USER/www dir. , and the users still can view my system dirs. etc... :(

Any idea?

Thanks so much :)

Kevin

RutRow
10-16-2001, 11:38 PM
(1) What command if I want to Stop and Restart the ProFTPd?
To start: /usr/local/sbin/proftpd
To stop: killall proftpd

(2) If standalone, What bootup command or sh scripts do I need so the FTP can be started automatically when my server restart?
Just add the above line to /etc/rc.d/rc.local

(3) I have my config file in etc/proftpd.conf as above but I think the ProFTP don't use my config, cause it said,
The default install puts the config file in /usr/local/etc

and just go to the /home/USER dir. (same as wu-ftp) but don't go to /home/USER/www dir. , and the users still can view my system dirs. etc.

Add this line to your conf file to chroot people into their home dir.
DefaultRoot ~

ckevin
10-17-2001, 12:52 AM
RutRow, thanks for your detailed info. now it works perfectly :)
thanks very much!

bizee
10-18-2001, 08:39 PM
whoops forgot to hit New Post