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

Read only #153

Open
xhalo32 opened this issue Dec 25, 2020 · 2 comments
Open

Read only #153

xhalo32 opened this issue Dec 25, 2020 · 2 comments

Comments

@xhalo32
Copy link

xhalo32 commented Dec 25, 2020

podman run --rm -p 8021:21 -p 30000-30009:30000-30009 -e "PUBLICHOST=localhost" -e FTP_USER_NAME=bob -e FTP_USER_PASS=12345 -e FTP_USER_HOME=/home/bob -v /dir:/home/bob:ro stilliard/pure-ftpd

Fails due to a permission error

chown: changing ownership of '/home/bob': Read-only file system
 root user give /home/bob directory ftpuser owner

How to use pure-ftpd with read-only mount?

@stilliard
Copy link
Owner

Happy holidays @xhalo32

We don't have built in support for this yet but it's a good idea to add in the future, for now if you've not already solved it I think your best bet would be to clone or fork this repo & comment out the chown lines in the run.sh file, hope this helps.

@mindrunner
Copy link

I solved (worked around) this by having regular home-dirs and a read-only subfolder:

    volumes:
      - ./ftpusers:/home/ftpusers
      - /mnt/data/stuff:/home/ftpusers/stuff/data:ro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants