docker-pure-ftpd icon indicating copy to clipboard operation
docker-pure-ftpd copied to clipboard

Multiple users

Open paulocoutinhox opened this issue 4 years ago • 4 comments

hi,

how can i add multiple users?

i want add near 10 users/password for my customers to www folder.

thanks?

paulocoutinhox avatar Jun 15 '20 04:06 paulocoutinhox

Hi @prsolucoes

You should be able to add as many users as you like, exec into the running container and use the pure-pw command to add each user, see here for an example: https://github.com/stilliard/docker-pure-ftpd#example-usage-once-inside

Hope this helps.

stilliard avatar Jun 17 '20 07:06 stilliard

It can only be done inside? I'd love to be able to have users like -e USERS=bob:12345;john:doe e.g.

NixBiks avatar Jun 25 '20 08:06 NixBiks

@mr-bjerre currently only available inside the container, but you can fork this repo and change the run.sh file to set them up for you.

Alternatively, if you'd like you could investigate how we could support multiple, maybe passing details in a csv style format or something. If it works you can submit a pull request back to the project and I'd be happy to take a look :)

stilliard avatar Jun 25 '20 08:06 stilliard

Sure - I just always struggle writing "complicated" bash scripts. There is some inspiration to draw from atmoz/sftp though, i.e. from entrypoint and create-sftp-user.

NixBiks avatar Jun 25 '20 09:06 NixBiks