-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
Got error 500, on a mounted volume #109
Comments
Hi @vipera7 , |
I have tried the following command |
I think you could try using the uid as the -u flag instead of root and -g as the group id (I think these are 0 for root if that helps). |
I have to use the root user uid ? When I use -g flag it ouput me as the flag doesn't exist.
So I should do something like :
Here is the permission I get from
but I can't list content now |
I also tried to give ftpuser root privilege and change in /etc/pure-ftpd/passwd/pureftpd.passwd to change from 1000;1000 to 0.0 but the problem persist |
Hi @vipera7 ah that's a shame, i've not had any experience with object storage but worth asking on stackoverflow if you haven't already with the pureftpd tag, hopefully someone on there can help 👍 |
I got an answer that doesn't help, I will give a bounty on the question, we will see if someone can figure it out |
I found some new info about my issue. I'm using now this following command to create the container :
The folder data is the mounted volume. I have the following path :
I have made the following command before running the container to give permission to user foo :
Now I can write into folder data2 but I can't do anything before this folder (access denied) |
I'm also having a problem renaming files: I've created a virtual user with manual uid/gid from the host machine. Create/Upload/Delete files works fine, rename doesn't. I've tried to add the "--norename=false --autorename=false" on I've also tried to set the value no on /etc/pure-ftpd/conf/NoRename but without any change. |
@finex Are you using the hardened branch? I just ran into this and found that the Dockerfile in the hardened branch looks like this: The Edit: |
@mryauch I have verified it works. 👍 |
@mryauch you're right. I was using that branch. Later I found that flag and I've switched to the other image manually adding some security flags but I've forgot to report it here. |
I want to access to n object storage with ftp and be able to do some action. Right now I can access and view files/folders from it, but I can't do action, like rename a file, create a dir...
Here is my mounted volume in my host:
drwxrwxr-x. 1 root root 0 Jan 1 1970 mnt
I'm using the following command to create a container :
docker run -d --name ftpd_server -p 21:21 -p 30000-30009:30000-30009 -e "PUBLICHOST=123.123.123.123" -v /mnt:/home/ftpusers/root stilliard/pure-ftpd:latest
Then I enter in the container with :
docker exec -it ftpd_server /bin/bash
And create the user
pure-pw useradd root -f /etc/pure-ftpd/passwd/pureftpd.passwd -m -u ftpuser -d /home/ftpusers/root
(Do I have to put root as ftp user ?)
Then I get this when I try to create a dir
And I can see my contents
The text was updated successfully, but these errors were encountered: