-
-
Notifications
You must be signed in to change notification settings - Fork 326
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
Cannot list directory when new user added. #188
Comments
Hi @sniperwolf88 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I followed the steps to run ftp in docker using docker compose, but when I create an extra user with the command:
pure-pw useradd USER -f /etc/pure-ftpd/passwd/pureftpd.passwd -m -u ftpuser -d /home/ftpusers/USER
It creates the user and writes the information in the pureftpd.passwd file, but it doesn't create the directory for the user. I tried multiple ways, including matching the id and gid with the volume where I have mapped persistent files, but I was unsuccessful. The ftp client always returned that the directory was inaccessible. Apparently and as I could confirm, the directory is not created after executing the command inside the container.
The only way I could solve it was by running:
docker exec -it pure-ftpd-1 pure-pw useradd USER -f /etc/pure-ftpd/passwd/pureftpd.passwd -m -u 1500 -g 1500 -d /home/ftpusers/USER
And then on the docker host, where I have mapped the data volume, with the user with id 1500 and gid 1500:
mkdir /home/apps/production/docker/pure-ftpd/pure-ftpd-1/data/USER
This way, I was able to make everything work.
The text was updated successfully, but these errors were encountered: