bftpd - chce heslo aj pre anonymous usera
Rozbehal som si bftpd ftp server.
Všetko fungovalo až doteraz. Aj pre anonymous usera vyžaduje meno a heslo a neviem sa toho zbaviť. Možno som nejak zblbol config ale nepametám si...
Moja konfigurácia:
global {
DENY_LOGIN="no"
PORT="21"
PASSIVE_PORTS="0"
DATAPORT20="no"
ADMIN_PASS="x"
PATH_BFTPDUTMP="/var/run/bftpd/bftpdutmp"
XFER_BUFSIZE="2048"
CHANGE_BUFSIZE="no"
XFER_DELAY="0"
SHOW_HIDDEN_FILES="yes"
SHOW_NONREADABLE_FILES="no"
ALLOW_FXP="no"
CONTROL_TIMEOUT="300"
DATA_TIMEOUT="30"
RATIO="none"
ROOTDIR="%h"
UMASK="022"
LOGFILE="/var/log/bftpd.log"
HELLO_STRING="bftpd %v at %i ready."
AUTO_CHDIR="/"
AUTH="PASSWD"
RESOLVE_CLIENT_IP="no"
MOTD_GLOBAL="/etc/ftpmotd"
MOTD_USER="/.ftpmotd"
RESOLVE_UIDS="yes"
DO_CHROOT="yes"
LOG_WTMP="yes"
BIND_TO_ADDR="any"
PATH_FTPUSERS="/etc/ftpusers"
AUTH_ETCSHELLS="no"
ALLOWCOMMAND_DELE="no"
ALLOWCOMMAND_STOR="yes"
ALLOWCOMMAND_SITE="no"
HIDE_GROUP=""
QUIT_MSG="See you later..."
USERLIMIT_GLOBAL="0"
USERLIMIT_SINGLEUSER="0"
USERLIMIT_HOST="0"
GZ_UPLOAD="no"
GZ_DOWNLOAD="no"
}
user ftp {
#Any password fits.
ANONYMOUS_USER="yes"
ROOTDIR="/mnt/zdielane"
}
user anonymous {
#If the client wants anonymous, ftp is taken instead.
ALIAS="ftp"
}
user root {
DENY_LOGIN="Root login not allowed."
}
Výpis z logu:
Sat Mar 14 22:22:24 2009 /usr/sbin/bftpd[26111]: Incoming connection from 89.173.85.162.
Sat Mar 14 22:22:24 2009 /usr/sbin/bftpd[26111]: Processing command: USER anonymous
Sat Mar 14 22:22:24 2009 /usr/sbin/bftpd[26111]: Trying to log in as ftp.
Sat Mar 14 22:22:24 2009 /usr/sbin/bftpd[26111]: Processing command: PASS
Sat Mar 14 22:22:24 2009 /usr/sbin/bftpd[26111]: Login as user 'ftp' failed.
Sat Mar 14 22:22:24 2009 /usr/sbin/bftpd[26111]: Processing command: QUIT
Sat Mar 14 22:22:24 2009 /usr/sbin/bftpd[26111]: Quitting.
tomolc
Pre pridávanie komentárov sa musíte prihlásiť.
"The first is that bftpd prompts for a password, even if the user is logging in as anonymous. "
podla mna je to korektne spravanie, nakolko sa anonym naloguje svojou/vymyslenou mailovou adresou a pripadne aj nejakym vymyslenym heslom
Teraz som skúšal vymyslené meno a heslo a nevzal to.
Prípadne možeš skúsť ftp://89.173.85.162
tomolc
no skusal som, nejako ti to nebere. skus pozriet do dokumentacie
http://bftpd.sourceforge.net/doc/czech/bftpd-tutorial-cz.html
je ale zaujmavé že mi to ešte pred týždňom fungovalo....
tomolc
ešte aj v tom file /etc/ftpusers mám napísané že:
# To enable anonymous FTP, remove the "ftp" user:
dikes za ochotu
tomolc