Closed MichalMoravik closed 3 years ago
Okay I found out that I did a mistake in my docker-compose.yml file. In volumes, there should be ./ftp_data/ftp/passwd:/etc/pure-ftpd/passwd
instead of ./ftp_data/ftp/passwd:/home/pure-ftpd/passwd
. It must be "etc" folder, not "home" folder. Sorry for that, I am closing the issue.
Hi! I created some FTP users but after I stopped and removed the Docker container, I could not authenticate using these users. I am keeping all my data inside of volumes, so it should be possible to authenticate even after recreation. I found out, after looking inside of the Docker's container (/home/ftpusers), that the folders with users' names are still there. Therefore I think it could be that passwords are damaged or that I do something wrong.
My docker-compose file:
Steps I took:
docker exec -it <container-id> bash
pure-pw useradd bob -f /etc/pure-ftpd/passwd/pureftpd.passwd -m -u ftpuser -d /home/ftpusers/bob
docker exec -it <container-id> bash
Does somebody know what could be wrong, please? It is kind of urgent for my company. Thanks a lot!