Proftpd

apt-get

Active Member
Hi...

Ich hab FreeBSD 4.9 und mir ueber die ports proftpd installiert.
ok die config file ist in /usr/local/etc, die hab ich mal im großen und ganzen so lassen, und mit /usr/local/libexec/proftpd proftpd gestartet.
ja gut, wenn ich mit nem ftp programm zu xx.xxx.xxx.xx (meine IP halt) connecten will, kommt nur nen fehler wie "connection refused" oder sowas.
wieso kann ich nicht mal connecten? und weiß wer nen tutorial, wie ich die .conf fuer anonymen zugang konfogurieren muss ??

...danke...
 
Hmm also ich wuerde erstmal schauen ob der Prozess wirklich laeuft, d.h. das er beim Aufruf nicht wegen irgenteines Fehlers ausgestiegen ist.
-> ps aux | grep ftp
oder -> sockstat | grep ftp
Naja und um ne evtl Firewall oder aehnliches auszuschliessen wuerde ich von der Maschine selber versuchen.
-> ftp localhost
 
schade dass ich jetzt nicht aus dem Kopf weiss welche Datei das war, aber ich hatte das gleiche Problem und hatte festgestellt dass proftpd nicht lief weil eine Datei nicht vorhanden war. Sie musste noch nicht einmal einen Inhalt haben, ein einfaches "touch Dateiname" reichte... ich forsche nochmal nach
 
@illuminatus
ich weis nicht ob du "ScoreboardFile" in proftpd.conf meinst?? Die hat mir auch gefehlt. Die habe auch erst mit "touch" erstellen muessen. (bei mir /var/run/proftpd.pid)
 
hmmm..... scheint, als wuerd das ding echt net laufen..
habs wieder gestartet, danach als root "killall proftpd" und tatsaechlich "No matching processes were found"...

aber danke erstmal .. =)
 
Lösung habe ich jetzt:

1.)
touch /var/run/proftpd.pid

2.)
edit /usr/local/etc/proftpd.conf

3.) einfügen
ScoreboardFile /var/run/proftpd.pid

4.)
/usr/local/libexec/proftpd -n

5.)
lsof -nPi

und siehe da der proftpd läuft
 
Verzeichnis /home/ftp anlegen
Das ist ein Auszug aus /etc/proftpd.conf

######################################
# A basic anonymous configuration, no upload directories.

<Anonymous ~ftp>
User ftp
Group nogroup
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp

RequireValidShell off

# Limit the maximum number of anonymous logins
MaxClients 10

# 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
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>

# Uncomment this if you're brave.
# <Directory incoming>
# # Umask 022 is a good standard umask to prevent new files and dirs
# # (second parm) from being group and world writable.
# Umask 022 022
# <Limit READ WRITE>
# DenyAll
# </Limit>
# <Limit STOR>
# AllowAll
# </Limit>
# </Directory>

</Anonymous>

#############################################
cubx:~# ftp localhost
Connected to cubx.
220 ProFTPD 1.2.9 Server [cubx]
Name (localhost:root): ftp
331 Anonymous login ok, send your complete email address as your password.
Password:
230-Welcome, archive user ftp@cubx !
230-
230-The local time is: Sun Jan 18 17:09:14 2004
230-
230-This is an experimental FTP server. If have any unusual problems,
230-please report them via e-mail to <root@cubx>.
230-
230 Anonymous access granted, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
229 Entering Extended Passive Mode (|||32785|)
150 Opening ASCII mode data connection for file list
-rw-r--r-- 1 root root 166 Nov 3 14:31 welcome.msg
226 Transfer complete.
ftp>
 
joa er geht =))..
danke....!!

momentna kann ich mich mit jedem user einloggen, wie kann ich das auf einen bestimmten beschränken? also dass man sich nur noch mit 1, 2 user einloggen kann...?? wäre cool, danke...

=)
mfg apt-get
 
Schau in /etc/ftpusers
Ob die Datei auch vom proftpd ausgewertet wird kann ich nicht sagen.
wuftpd und bsdftpd werten die Datei aus.

Wenn Du feststellen möchtest, ob ein Server läuft, einfach netstat -na eingeben.
Das sieht dann so aus:
cubx:~# netstat -na
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:515 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:716 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:755 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
udp 0 0 0.0.0.0:68 0.0.0.0:*
udp 0 0 0.0.0.0:749 0.0.0.0:*
udp 0 0 0.0.0.0:111 0.0.0.0:*
udp 0 0 0.0.0.0:752 0.0.0.0:*
 
Zuletzt bearbeitet von einem Moderator:
Zurück
Oben