Skip to content
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

[Question] Setting the number of users. #77

Closed
bheku opened this issue Jul 11, 2018 · 8 comments
Closed

[Question] Setting the number of users. #77

bheku opened this issue Jul 11, 2018 · 8 comments

Comments

@bheku
Copy link

bheku commented Jul 11, 2018

In the documentation, it is recommended to extend the image and make changes as needed.

However, I just need to change the maximum number of users, -c, to a larger number. Do I still need to create my own image just for that change only?

Or is there any other way to override the default value of 5?

@stilliard
Copy link
Owner

Hi @bheku ,

Sure you can run set the run command when using docker run to override this instead, see here for more details: https://docs.docker.com/engine/reference/run/

@bheku
Copy link
Author

bheku commented Jul 11, 2018

Not sure I follow. Do you have an example?

And thanks for the the work thus far.

Would be nice if you had a convenience variable for this, like you do for FTP_PASSIVE_PORTS :)

@stilliard
Copy link
Owner

Sure thing, I believe the following syntax would work, this gets around any need for adding variables for every pure-ftpd setting :)

docker run --rm -d --name ftpd_server -p 21:21 -p 30000-30009:30000-30009 stilliard/pure-ftpd:hardened bash /run.sh -c 30 -C 10 -l puredb:/etc/pure-ftpd/pureftpd.pdb -E -j -R -P localhost -p 30000:30059

@bheku
Copy link
Author

bheku commented Jul 11, 2018

Thank you:

Status: Connection established, waiting for welcome message...
Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response: 220-You are user number 4 of 30 allowed.
Response: 220-Local time is now 09:51. Server port: 21.
Response: 220-This is a private system - No anonymous login
Response: 220-IPv6 connections are also welcome on this server.
Response: 220 You will be disconnected after 15 minutes of inactivity.

@bheku bheku closed this as completed Jul 11, 2018
@stilliard
Copy link
Owner

You're welcome, I'll add this to the docs

@bheku
Copy link
Author

bheku commented Jul 11, 2018

Nah... add an environment variable rather, FTP_MAX_CLIENTS... it makes for a rather lengthier having to invoke the run.sh file and it's arguments.

Don't you think?

@stilliard
Copy link
Owner

I'd always air on the side of simplicity. There's many flags I could add but they'd just map to the pure-ftpd ones so seems pointless unless there's a real gain.
Full list of flags available: https://linux.die.net/man/8/pure-ftpd (adding these to the readme now)

@bheku
Copy link
Author

bheku commented Jul 11, 2018

..alright, for simplicity's sake then...

Thanks again for your prompt response and help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants