pure-ftpd within a jail

asfdqwer xzcvdsf brueggma at yahoo.com
Thu Oct 14 16:24:36 PDT 2004


Greetings,

I'm having problems using pure-ftpd within a jail. 
I'm unable to set it up as a "secure anonymouse" ftp
server.  The config file I have setup works on the
host, but not the jail..  This works for normal users,
just not anonymouse users.

jail# ftp localhost
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
220---------- Welcome to Pure-FTPd [privsep] [TLS]
----------
220-You are user number 1 of 50 allowed.
220-Local time is now 18:16. Server port: 21.
220 You will be disconnected after 3 minutes of
inactivity.
Name (localhost:user): ftp
421 Unable to set up secure anonymous FTP
ftp: Login failed.
ftp> quit
jail#

host# truss -p 36290
(null)()                                         = 1
(0x1)
accept(0x4,{ AF_INET 69.13.248.247:51044 },0xbfbfddfc)
= 5 (0x5)
sigprocmask(0x1,0xbfbfea90,0x0)                  = 0
(0x0)
fork()                                           =
89910 (0x15f36)
close(5)                                         = 0
(0x0)
sigprocmask(0x2,0xbfbfea90,0x0)                  = 0
(0x0)
SIGNAL 20 (SIGCHLD)
select(5,{4},0x0,0x0,0x0)                        ERR#4
'Interrupted system call'
SIGNAL 20 (SIGCHLD)
SIGNAL 20 (SIGCHLD)
wait4(0xffffffff,0x0,0x1,0x0)                    =
89910 (0x15f36)
unlink("/var/run/pure-ftpd/client-00089910")     = 0
(0x0)
wait4(0xffffffff,0x0,0x1,0x0)                   
ERR#10 'No child processes'
sigreturn(0xbfbfe7b0)                            ERR#4
'Interrupted system call'


jail# ls -la /var/ftp/
total 12
dr-xr-xr-x   6 root  wheel  512 Oct 11 21:00 .
drwxr-xr-x  21 root  wheel  512 Oct 13 20:09 ..
dr-xr-xr-x   2 root  wheel  512 Oct 11 21:00 bin
dr-xr-xr-x   2 root  wheel  512 Oct 11 21:00 etc
drwxr-xr-x   2 root  wheel  512 Oct 11 21:00 pub
jail#




 


More information about the freebsd-ports mailing list