Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
since FTP has now SSL support and the webui is a total mess, i want to manage all stuff via the terminal.
i see there are a bunch of files involved, but have no clue where to start.
/ # find / -name *ftp* /etc/ftpmaxnumber /etc/ftpconversions /etc/newftp /etc/pure-ftpd.conf /etc/ftp_tbl /etc/ftpgroup /etc/ssl/private/pure-ftpd.pem /home/ftp /mnt/HD_a2/temp/ftpuser.sh /mnt/HD_a2/ffp/bin/ftpget /mnt/HD_a2/ffp/bin/ftpput /mnt/HD_a2/ffp/bin/sftp /mnt/HD_a2/ffp/share/man/man8/sftp-server.8 /mnt/HD_a2/ffp/share/man/man1/sftp.1 /mnt/HD_a2/ffp/libexec/sftp-server /mnt/HD_a2/ffp/include/arpa/ftp.h /mnt/HD_a2/ffp/include/arpa/tftp.h /mnt/HD_a2/home/ftpsuser /mnt/HD_a4/.systemfile/.pureftpd/pureftpd.log /sys/crfs/bin/pure-ftpd /sys/crfs/default/newftp /sys/crfs/default/pure-ftpd.conf /sys/crfs/web_page/advanced/ftp_modify.asp /sys/crfs/web_page/advanced/ftp_setting.asp /sys/crfs/web_page/advanced/modify_ftp_success1.asp /sys/crfs/web_page/advanced/modify_ftp_success2.asp /sys/mtd1/pure-ftpd.conf /usr/bin/pure-ftpd /usr/share/ftp_server /var/run/pure-ftpd.pid /default/ftp_tbl /default/newftp /default/pure-ftpd.conf / #
this seems like the config stuff from the bottom of the webui
/ # more /etc/pure-ftpd.conf
### Pure-ftpd configure ### Version = "1.00" Status = "start" MaxClientsNumber = "2" MaxIdleTime = "5" Port = "21" FlowControl = "0" FileSystemCharset = "UTF-8" ClientCharset = "ISO8859-1"
right now, how can i generally grant access to new created users?
update:
ahh ;-), the command line which is used
still no sign regarding the users
3327 root pure-ftpd -c 2 -I 5 -S 21 -8 UTF-8 -9 ISO8859-1 -Y 1 -O simple:/mnt/HD_a4/.systemfile/.pureftpd/formated.log -A -H -U 0:0
which becomes
3327 root pure-ftpd (SERVER)
info:
pure-ftpd -c 2 -I 5 -S 21 -8 UTF-8 -9 ISO8859-1 -Y 1 -O simple:/mnt/HD_a4/.systemfile/.pureftpd/formated.log -A -H -U 0:0 -c 2 2 simultaneous connection -I 5 maximum idle time 5 minutes -S 21 port 21 -8 UTF-8 charset UTF-8 -9 ISO8859-1 clientcharset ISO8859-1 -Y 1 TLS+cleartext -O simple:/mnt/HD_a4/.systemfile/.pureftpd/formated.log alternative log file -A chrooteveryone -H dontresolve -U 0:0 umask
update2:
the built in pure-ftpd from dlink does not work at all, i am getting nowhere ..
i installed pure-ftpd via optware: ipkg install pure-ftpd
then this command works for me :-)
pure-ftpd -c 2 -I 5 -S 21 -A -Y 1 -B -O /var/log/pure-ftpd.log
fun_plug:
kill -9 $(cat /var/run/pure-ftpd.pid)
/mnt/HD_a2/ipkg/opt/sbin/pure-ftpd -c 2 -I 5 -S 21 -A -Y 1 -B -O /var/log/pure-ftpd.log
Last edited by mastervol (2009-01-01 23:24:55)
Offline
ok i made a ffp start script, just put it in /ffp/start:
#! /ffp/bin/bash
pidfile="/var/run/pure-ftpd.pid"
check=$1
if [ "$check" == "" ];then
echo "you have to supply a parameter: start, stop or restart"
elif [ "$check" == "stop" ];then
if [ -e $pidfile ]; then
pid=$(cat $pidfile)
echo "ftpd on pid $pid, killing"
kill -9 $pid
rm $pidfile
else
echo "ftpd not running"
fi
elif [ "$check" == "start" ]; then
if [ -e $pidfile ]; then
pid=$(cat $pidfile)
echo "fptd already running on pid $pid"
else
echo "starting ftpd"
/mnt/HD_a2/ipkg/opt/sbin/pure-ftpd -c 2 -I 5 -S 21 -A -Y 2 -B -O /var/log/pure-ftpd.log -g /var/run/pure-ftpd.pid
fi
elif [ "$check" == "restart" ]; then
if [ -e $pidfile ]; then
pid=$(cat $pidfile)
echo "restarting ftpd"
echo "ftpd on pid $pid, killing"
kill -9 $pid
rm $pidfile
echo "starting ftpd"
/mnt/HD_a2/ipkg/opt/sbin/pure-ftpd -c 2 -I 5 -S 21 -A -Y 2 -B -O /var/log/pure-ftpd.log -g /var/run/pure-ftpd.pid
else
echo "ftpd not running, starting"
/mnt/HD_a2/ipkg/opt/sbin/pure-ftpd -c 2 -I 5 -S 21 -A -Y 2 -B -O /var/log/pure-ftpd.log -g /var/run/pure-ftpd.pid
fi
fiOffline