On 23/09/13 11:07 PM, Fung wrote:
in current snapshots
install pure_ftpd
default /etc/rc.d/pure_ftpd is
---
#!/bin/sh
#
# $OpenBSD: pure_ftpd.rc,v 1.1 2011/04/25 09:26:47 sthen Exp $
daemon="/usr/local/sbin/pure-ftpd"
daemon_flags="-A -B -H -u1000"
. /etc/rc.d/rc.subr
pexp="pure-ftpd: -pure-ftpd \(SERVER\)"
rc_reload=NO
rc_cmd $1
------
# /etc/rc.d/pure_ftpd start
# ps -auwx | grep ftpd
root 8530 0.0 0.0 852 1264 ?? Is 10:44AM 0:00.00 pure-ftpd:
-pure-ftpd (SERVER) (pure-ftpd)
now user login work
if add other flags like "-o", for example , change /etc/rc.d/pure_ftpd
----
-daemon_flags="-A -B -H -u1000"
+daemon_flags="-o -A -B -H -u1000"
the daemon will start but nobody can login!!!!!
# pkill ftpd
# /etc/rc.d/pure_ftpd start
pure_ftpd(ok)
# ps -auwx | grep ftpd
root 15587 0.0 0.0 676 964 ?? Is 10:48AM 0:00.00
/usr/local/sbin/pure-ftpd -o -A -B -H -u1000
# ftp localhost
Trying 127.0.0.1...
ftp: connect to address 127.0.0.1: Connection refused
Trying ::1...
ftp: connect: Connection refused
ftp>
BTW, start pure-ftpd without rc.d script not work too
# pkill ftpd
# /usr/local/sbin/pure-ftpd -A -B -H -u1000 -o
# ftp localhost
Trying 127.0.0.1...
ftp: connect to address 127.0.0.1: Connection refused
Trying ::1...
ftp: connect: Connection refused
ftp>
# sysctl kern.version
kern.version=OpenBSD 5.4-current (GENERIC) #55: Tue Sep 17 08:29:11 MDT 2013
t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
# pkg_info | grep pure
pure-ftpd-1.0.36p2-virtual_chroot small, easy to set up, fast and very secure
FTP server
The pure-ftpd package works fine out of the box with either the rc.d
script or manually running the equivalent binary and command line
parameters. There is something you have done on your system to cause it
to not work. Does fstat show the sockets created by pure-ftpd once it
has been started up? Are you running a modified PF rule set?
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.