-
-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/etc/pure-ftpd/conf/* does not work #38
Comments
Hi @daohoangson It might be that you need to restart the service after these changes from them to take affect. |
I didn't make any changes to the conf files, it always behaves that ways right after being started. |
Ah I see, just tested and you're right. That is pretty weird, I'll do some digging on this to find out what's wrong. Thanks for reporting this! |
I noticed a new tag recently but apparently there is no changes, have you found out anything @stilliard? Thank you. |
Hi @daohoangson , |
Has there been any progress here, I can't change MaxClientsNumber, It's stuck at 5:
I have tried restarting too without any luck. |
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. |
@daohoangson , after much digging I believe I've found the cause, it looks like normally pure-ftpd-wrapper would setup these config options for us based on the conf directory but we don't use that due to how we startup pure-ftpd so currently these conf changes never get applied. |
…ntly use the debian wrapper that would parse these, see issue #38
For now I've switched the hardened branch to use flags instead of conf file, but i'm open to changing this to use something similar to the wrapper script Debian use by default or using that same script in some way maybe. |
That makes sense. We should stick to the default behavior as much as
possible and reduce our maintenance efforts. Using flags is not that hard
anyway.
Thanks Andrew.
On Aug 30, 2017 7:31 AM, "Andrew Stilliard" <[email protected]> wrote:
For now I've switched the hardened branch to use flags instead of conf
file, but i'm open to changing this to use something similar to the wrapper
script Debian use by default or using that same script in some way maybe.
I'll close this for now though as the flags should replace the conf files.
Please let me know if there's any issues with this though, thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOm6HpIRFXR3ineiy7Q42I8C-asnRiJks5sdK14gaJpZM4NaHi6>
.
|
Related to this. How to enable configs such as read or write dot files etc? These options are not available with the Are you saying these files in |
@aogilvie Please use pure-ftpd's flags instead of the conf files as we do not support these. |
@stilliard I tried
But using various FTP clients I cannot create dot files or folders (/.example). (login and creating other files are not an issue) I must be missing something... update: seems to be the ftp webclient i was testing with had it's own limitation policy. Using nix ftp cli I was able to create dot files (after creating my own docker file and adding -D and -z params). |
Hey @aogilvie , just seen your update, glad you were able to get it working.
|
@stilliard ah... Yes I was using the hardened image. Doh. Cheers. |
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 upAm I missing something here? It shouldn't display
.bar
right?Similarly, I tried removing
-j
from theCMD
(with/etc/pure-ftpd/conf/CreateHomeDir
=yes
of course, I was usinghardened
image) and it doesn't create home directory anymore.The text was updated successfully, but these errors were encountered: