fauria / docker-vsftpd

🐳 vsftpd Docker image based on Centos 7. Supports passive mode and virtual users.
https://hub.docker.com/r/fauria/vsftpd/
Apache License 2.0
414 stars 341 forks source link

How to change virtual user password? #57

Open yoursh opened 3 years ago

yoursh commented 3 years ago

How to change virtual user password?

dennsya commented 3 years ago

docker exec -i -t vsftpd bash vi /etc/vsftpd/virtual_users.txt /usr/bin/db_load -T -t hash -f /etc/vsftpd/virtual_users.txt /etc/vsftpd/virtual_users.db exit docker restart vsftpd

yoursh commented 3 years ago

How to view virtual users? How to delete a virtual user? thinks

rafzei commented 3 years ago

@yoursh To see entries stored in database: db_dump -d a /etc/vsftpd/virtual_users.db | grep len To remove virtual user you have to delete entry from virtual_users.txt and recreate virtual_users.db using this command: /usr/bin/db_load -T -t hash -f /etc/vsftpd/virtual_users.txt /etc/vsftpd/virtual_users.db