mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #218] Chown results input/output error #121
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#121
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kylegoch on GitHub (Aug 4, 2015).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/218
We are trying to chown and change the user/owner on the directory that the bucket is mounted at. We are basically having the same issue that is outlined here:
https://code.google.com/p/s3fs/issues/detail?id=192
We are running s3fs version 1.79.
What happens is that we issue:
chown : /mount/location
And get the input/output error.
We tried the allow others option and that worked but then everyone could get to it. We would prefer that this one user have control over the folder only rather than root or everyone.
Thanks in advance.
@gaul commented on GitHub (Aug 7, 2015):
Could you share the debug output via:
@rotten commented on GitHub (Nov 25, 2015):
Since I'm seeing the same issue (and it is a worrying security concern), I thought I'd try the debug statement you mention above. When I run it, I get this error:
I have the file system mounted through fstab on Ubuntu 14.04 like this:
The mount looks like this (with "ls -l"):
@ggtakec commented on GitHub (Nov 29, 2015):
@rotten please following command.
This command line is as same as @andrewgaul said.
Probably you will be able to see many information which s3fs will put.
Thanks in advance for your help.
@rotten commented on GitHub (Nov 30, 2015):
Here is what I see when I mount using dbglevel=debug and then (in another window) try to chown the mountpoint. After that I run umount from the other window.
Could it have something to do with the region?
@ggtakec commented on GitHub (Dec 13, 2015):
@rotten I'm sorry for replygin late and your debug log.
It was that s3fs failed to change owner for the mount point.
s3fs could not change the owner(group) for mount point. If you need to change those, you have to run s3fs with uid/gid option.
So we need to clear for this issue about following:
If you can, please set owner/permission for mount point to allow to access from uid(1234) / gid(1234).
Thanks in advance for your help.
@rockuw commented on GitHub (Dec 22, 2015):
@ggtakec
Hi, I tried run s3fs with uid/gid option and it didn't work.
Both user
s3fsandrootcannot stat/tmp/s3. What's the problem here?@ggtakec commented on GitHub (Jan 9, 2016):
@rockuw
Try to run s3fs with "allow_other" option. example:
./src/s3fs bucket-name /tmp/s3 -o passwd_file=~/.s3.key -ouid=1001,gid=1001,allow_other
Regards,
@rockuw commented on GitHub (Jan 11, 2016):
@ggtakec
What's the rationale here? With
uid=1001,gid=1001, user s3fs is the owner, not other.And what if we want to allow access only to s3fs and not all other users?
@ggtakec commented on GitHub (Jan 16, 2016):
@rockuw
If ubuntu user mounts by s3fs(FUSE) without allow_other option, another user is not allowed to access mount point.
So that, we need to use allow_aother, but it sets 0777 permission for mount point.
If you need to use the allow_other and want to change the permissions, you can add mp_umask option in command line.
This option is set mount point permission like as umask.
Maybe, you can run following command for this issue:
./src/s3fs bucket-name /tmp/s3 -o passwd_file=~/.s3.key -ouid=1001,gid=1001,allow_other,mp_umask=002
Regards,
@atrepca commented on GitHub (Aug 12, 2016):
Had the same issue on Ubuntu 16.04 LTS and
s3fs-fuseversion1.79+git90-g8f11507-2. @ggtakec's suggestion worked - mounting withallow_other,mp_umask=022.@Braza commented on GitHub (Nov 12, 2016):
mp_umask=022 worked for me too with Amazon Linux
@ggtakec commented on GitHub (Jan 7, 2017):
I'm closing this issue.
But if this problem seems to continue, please reopen this issue or post new issue.
Thanks in advance for your help.
@faisbaig commented on GitHub (Jul 5, 2018):
The issue only resolve when you use
s3bucketname /localmountpoint fuse.s3fs _netdev,uid=1002,gid=1002,allow_other,mp_umask=022,iam_role=auto 0 0
if anyone do not use uid and gid option then mp_umask is useless.
@yuvaraj143 commented on GitHub (Sep 11, 2018):
use this for ubuntu instancess its working sudo s3fs bucket-name /tmp/s3 -o passwd_file=~/.s3.key -ouid=1001,gid=1001,allow_other,mp_umask=002
@thanhn1012 commented on GitHub (Oct 27, 2020):
Thank you so much!
@ricardoteix commented on GitHub (Jul 20, 2023):
I had the same problem and soved with @yuvaraj143 example . It was only needed to replace the 1001 to 33, that was the code of www-data user in my machine. I saw this code in /etc/passwd file.
Thank you all.