Henrik Hartig wrote:
> Den Sat, 18 Dec 2004 23:53:52 +0100. skrev Mikael Hansen:
>
>
>>jesper wrote:
>>
>>>Den Sat, 18 Dec 2004 21:02:47 +0100. skrev Henrik Hartig:
>>>
>>>
>>>
>>>>Hej
>>>>Er der nogen som kan hjælpe mig med en god "begyndermanual" til
>>>>at finde få ProFtpd til at virke.
>>>>Jeg kan simpelthen ikke finde ud af at sætte ftp-serveren op fra start
>>>>af. End ikke med en mikroskopisk proftpd.conf.
>>>>
>>>>/henrik
>>>
>>>Hvad går der galt?
>>
>>Jeg synes da at /etc/proftpd.conf er rimeligt forklarende.
>>
>>Og "man proftpd" henviser til at man kan finde den fulde dukumentation
>>på
http://www.proftpd.org/
>>
>>Jeg havde da ikke de store problemer med at få den op at køre da jeg
>>skulle prøve at sætte en ftp op.
>>
>>m.v.h. Mikael
>
>
> Hej allesammen
> Der ser ud til i gerne vi hjælpe mig
Var ellers indstillet på at
> kiggge lidt på noget guide af en art. Så jeg vil give jer lidt ekstra
> forklaring:
> mht. til dokumentationen på
www.porftpd.org,
> --------------------------------------------
> så har jeg i
> flere dage været inde på deres hjemmeside under "Documentation", og
> forsøge at komme inde på linket "Userguide", men dette link har ikke
> virket...
>
<snip config>
>
> 1) Jeg har installeret programmet fra en pakke i Mandrake (proFTPD 1.2.9)
> 2) Logget ind som root skrevet /etc/init.d/xinetd restart
> .. jeg får beskeden stopper -> ok
> starter -> ok
> 3) Så skulle den vidst virke... Men jeg kan ikke opnå forbindelse
> 4) herefter prøver jeg skrive proftpd -d9 -n, og får bl.a. at vide at
> "failed to binding to 0.0.0.0 port 21 Adress already in use.
> 5) jeg har fundet ud af noget med at jeg skal slå den proces ihjel, som
> bruger port 21, så jeg har skrevet fuser -n tcp 21
> here: 21
> 21/tcp: 3243.
>
> Her er jeg strandet.
>
>
>
> I min router har jeg åbnet port 20 og 21, desuden har wuftpd virket fint
> (men den er afinstalleret nu).
Du må da gerne se min config, den tillader godt nok ikke anonym. men det
kunne måske også være andet sted det går galt.
det er fra proftpd-1.2.7-1mdk, Mandrake 9.1 PPC
# 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 Default Installation"
ServerType standalone
DefaultServer on
# Allow FTP resuming.
# Remember to set to off if you have an incoming ftp for upload.
#AllowStoreRestart on
AllowStoreRestart off
# 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 10
# Set the user and group under which the server will run.
User nobody
Group nogroup
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin /etc/welcome.msg
# DisplayFirstChdir .message
# Needed for NIS.
PersistentPasswd off
# Default root can be used to put users in a chroot environment.
# As an example if you have a user foo and you want to put foo in /home/foo
# chroot environment you would do this:
#
# DefaultRoot /home/foo foo
DefaultRoot /home
og her også lige initscriptet fra /etc/rc.d/init.d som der så linkes til
fra de runlevels hvor den skal starte i.
#!/bin/sh
#
# Startup script for ProFTPd
#
# chkconfig: 345 85 15
# description: ProFTPD is an enhanced FTP server with \
# a focus toward simplicity, security, and ease of
configuration. \
# It features a very Apache-like configuration syntax, \
# and a highly customizable server infrastructure, \
# including support for multiple 'virtual' FTP servers, \
# anonymous FTP, and permission-based directory visibility.
# processname: proftpd
# config: /etc/proftpd.conf
#
# By: Osman Elliyasa <osman@Cable.EU.org>
# $Id: proftpd.init.d,v 1.2 2001/01/26 23:10:55 flood Exp $
# modified by vdanen@mandrakesoft.com
# Source function library.
.. /etc/rc.d/init.d/functions
# Get config.
.. /etc/sysconfig/network
# Check that networking is up.
if [ ${NETWORKING} = "no" ]
then
exit 0
fi
[ -x /usr/sbin/proftpd ] || exit 0
FTPSHUT=/usr/sbin/ftpshut
RETVAL=0
# See how we were called.
case "$1" in
start)
gprintf "Starting proftpd: "
daemon proftpd
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/proftpd
;;
stop)
gprintf "Shutting down proftpd: "
killproc proftpd
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/proftpd
;;
status)
status proftpd
RETVAL=$?
;;
restart)
$0 stop
$0 start
RETVAL=$?
;;
reload)
gprintf "Re-reading proftpd config: "
killproc proftpd -HUP
RETVAL=$?
echo
;;
suspend)
if [ -f $FTPSHUT ]; then
if [ $# -gt 1 ]; then
shift
gprintf "Suspending proftpd with '$*' "
$FTPSHUT $*
else
gprintf "Suspending proftpd NOW "
$FTPSHUT now "Maintanance in progress"
fi
else
gprintf "No way to suspend, shutting down instead "
fi
killproc proftpd
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/proftpd
;;
resume)
if [ -f /etc/shutmsg ]; then
gprintf "Allowing proftpd sessions again "
rm -f /etc/shutmsg
else
gprintf "Starting proftpd; was not suspended "
fi
daemon proftpd
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/proftpd
;;
*)
gprintf "Usage: %s {start|stop|status|restart|reload|resume" "$0"
if [ "$FTPSHUT" = "" ]; then
gprintf "}\n"
else
gprintf "|suspend}\n"
gprintf "suspend accepts additional arguments which are
passed to ftpshut(8)\n"
fi
exit 1
esac
if [ $# -gt 1 ]; then
shift
$0 $*
fi
exit $RETVAL
m.v.h. Mikael