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

Adding support for new users cannot be done using the last method #93

Open
FranEva opened this issue Oct 29, 2024 · 0 comments
Open

Adding support for new users cannot be done using the last method #93

FranEva opened this issue Oct 29, 2024 · 0 comments

Comments

@FranEva
Copy link

FranEva commented Oct 29, 2024

Adding support for new users cannot be done using the last method, because your initialization script run-vsftpd.sh contains the line echo -e "${FTP_USER}\n${FTP_PASS}" > /etc/vsftpd/virtual_users.txt. Once the Docker container is restarted, it will restore virtual_users.txt.

My understanding is that you need to modify the script to something like echo -e "${FTP_USER1}\n${FTP_PASS1}\n${FTP_USER2}\n${FTP_PASS2}\n${FTP_USER3}\n${FTP_PASS3}" > /etc/vsftpd/virtual_users.txt. I have already tested this locally.

If you really need to execute it inside the container, after execution you need to use docker commit to create a new container, but this approach seems to be against the specifications and the original design intent.

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

1 participant