stilliard / docker-pure-ftpd

Docker Pure-ftpd Server

Home Page:https://hub.docker.com/r/stilliard/pure-ftpd/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

passwd folder is created with root user instead of docker

changuelsami opened this issue · comments

commented

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 :)

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.

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.