Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add documentation about UID and GID access #126

Open
JayDi85 opened this issue Feb 13, 2020 · 2 comments
Open

Add documentation about UID and GID access #126

JayDi85 opened this issue Feb 13, 2020 · 2 comments

Comments

@JayDi85
Copy link

JayDi85 commented Feb 13, 2020

Docker's ftp virtual user (FTP_USER_NAME) uses default UID:GID as 1000:1000. So that's ID maps to host machine's user with same IDs and must be prevelegy compatible. If not then access denied error possible (error 500) on login or files operations.

Two important things missing from documentation:

  • 1000:1000 must have access to FTP_USER_HOME on host;
  • 1000:1000 must have read/write access for all files/folders available to edit from FTP.

Problem example (related issues: #109, #51):

  • Fresh ubuntu install;
  • It created two users (root and custom -- the last one is 1000:1000);
  • Switch to root mode and prepare docker config to run (create folders, yml, etc);
  • Run it and work with FTP;
  • Errors: you can't connect by ftp to home folder (no access for 1000);
  • Errors: you can't delete or create files in prepared folders by root (no access for 1000).
@stilliard
Copy link
Owner

Hi @JayDi85

Thanks for reporting this, would you be interested in making a pull request to add this to the readme file under the existing "Setting runtime FTP user" section?

@bartagergely
Copy link

I would be very thankfull for a detailed guide for how to use this image with multiple ftp users with different homedirs. What are the correct UID settings on the host's directories (the homedirs), and what is the correct setting for UIDs inside the pureftpd.passwd file.

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

No branches or pull requests

3 participants