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

passwd folder is created with root user instead of docker

Open changuelsami opened this issue 4 years ago • 2 comments

Hi,

volumes: - "/folder_on_disk/passwd:/etc/pure-ftpd/passwd"

The folder_on_disk folder is created with root user, so if I try de build again I have permission issues ! How can I fix this ?

Thanks :)

changuelsami avatar Aug 27 '20 18:08 changuelsami

Hi @changuelsami If you create the folder in advance I think you'll be able to set your own permissions on it. Or now it's created can you change it's permissions?

Hope this helps.

stilliard avatar Aug 28 '20 08:08 stilliard

Inside the container pureftp is ran as root which is why this happens. It's not a big deal. It not really the "root" user it's the root user inside the container. Would likely be a fair amount of work to fix. I have not dove to deep into the dockerfile / run script so not sure. As to permission issues you are having would need to know more about how you are running it ie docker vs docker-compose and are the permission issue you access the file or pureftp accessing the file inside the container? I have no issues with a compose setup.

MichaelLeeHobbs avatar Mar 20 '21 13:03 MichaelLeeHobbs