docker-pure-ftpd: /etc/pure-ftpd/conf/* does not work
It looks like the files inside /etc/pure-ftpd/conf are not being read by pure-ftpd. Below are my steps:
Screen 1
$> docker run --rm --name dev -p 21:21 -p 30000-30009:30000-30009 stilliard/pure-ftpd:hardened
Screen 2
$> docker exec -it dev bash
root@dev> pure-pw useradd bob -f /etc/pure-ftpd/passwd/pureftpd.passwd -m -u ftpuser -d /home/ftpusers/bob
root@dev> mkdir -p /home/ftpusers/bob
root@dev> touch /home/ftpusers/bob/foo
root@dev> touch /home/ftpusers/bob/.bar
root@dev> cat /etc/pure-ftpd/conf/DisplayDotFiles (no)
Screen 3
$> ftp 127.0.0.1
ftp> name=bob + password
ftp> ls -al
Expect: foo
Actual: foo and .bar both showed up
Am I missing something here? It shouldn’t display .bar right?
Similarly, I tried removing -j from the CMD (with /etc/pure-ftpd/conf/CreateHomeDir=yes of course, I was using hardened image) and it doesn’t create home directory anymore.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (8 by maintainers)
Commits related to this issue
- Swapped conf file usage for flags on hardened branch as we dont currently use the debian wrapper that would parse these, see issue #38 — committed to stilliard/docker-pure-ftpd by stilliard 7 years ago
Hi @daohoangson , Sorry I haven’t had chance to look into this much yet but I’ll find some time over the weekend. It’s my top priority for this project to hunt down this issue.
Hi @dylanjsa , Checking into this It looks like pure-ftpd will limit the number based on the available ports, I’ve changed the default container to actually open just 5 but added a README section about increasing this. Hope this helps.