Proftpd bug, chroot does not allow for access to or creation of folders named 'lib'
Paul Macdonald
paul at ifdnrg.com
Mon May 18 13:30:29 UTC 2015
>>> I can confirm this problem on FreeBSD 8.4-RELEASE i386 with
>>> proftpd-1.3.5_2
>>>
>>> Is some patch available to fix this? (I cannot disable DefaultChroot)
>>>
>> a bug report has been filed.
>>
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198938
> I've updated the PR with some short info what I found. Basically,
> there's a special case in src/fsio.c which explicitly denies
> writing to /etc and /lib in the chroot-case, refering to 3 year
> old AUSCERT warnings for proftpd with FreeBSD.
>
> Someone needs to check whether those warnings still apply to current-day
> proftpd and freebsd.
I'd updated the PR but just in case this is of use to the list the
workaround is simply to create a parent folder for your ftp root,
so as viewed by proftpd /etc/ would become /parent/etc
Paul.
More information about the freebsd-ports
mailing list