[GH-ISSUE #414] chown -R www-data:www-data /var/www/website/rootfolder/ #222

Closed
opened 2026-03-04 01:43:22 +03:00 by kerem · 3 comments
Owner

Originally created by @MourIdri on GitHub (May 13, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/414

Hi,
Could not do chown. I tired to remove all security stuff :

s3fs bucket /var/www/website/rootfolder/ -o passwd_file=/etc/passwd-s3fs -o nonempty -o url=https://my.s3.objectstore.corp:8082 -o sigv2 -o no_check_certificate -o use_path_request_style -d -d -f -o f2 -o curldbg -o retries=1 -o use_cache=/tmp -o allow_other -o uid=1000 -o gid=1000 -o default_acl=public-write-read

I got this :

[INF] curl.cpp:RequestPerform(1940): HTTP response code 200
[DBG] curl.cpp:ReturnHandler(295): Return handler to pool: 31
[INF] cache.cpp:AddStat(344): add stat cache entry[path=/uploads/]
[DBG] cache.cpp:GetStat(267): stat cache hit [path=/uploads/][time=4886.908116375][hit count=0]
[DBG] fdcache.cpp:ExistOpen(1927): [path=/uploads][fd=-1][ignore_existfd=false]
[DBG] fdcache.cpp:Open(1876): [path=/uploads][size=-1][time=-1]
[DBG] s3fs.cpp:s3fs_getattr(832): [path=/uploads] uid=33, gid=33, mode=40775
unique: 4506, success, outsize: 120
unique: 4507, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
unique: 4507, success, outsize: 16
unique: 4508, opcode: SETATTR (4), nodeid: 1, insize: 128, pid: 1417
chown / 33 33
[INF] s3fs.cpp:s3fs_chown(1634): [path=/][uid=33][gid=33]
[ERR] s3fs.cpp:s3fs_chown(1637): Could not change owner for maount point.
unique: 4508, error: -5 (Input/output error), outsize: 16

Not sure to understand, since I can do a chown for each sub dir separatly

Originally created by @MourIdri on GitHub (May 13, 2016). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/414 Hi, Could not do chown. I tired to remove all security stuff : s3fs bucket /var/www/website/rootfolder/ -o passwd_file=/etc/passwd-s3fs -o nonempty -o url=https://my.s3.objectstore.corp:8082 -o sigv2 -o no_check_certificate -o use_path_request_style -d -d -f -o f2 -o curldbg -o retries=1 -o use_cache=/tmp -o allow_other -o uid=1000 -o gid=1000 -o default_acl=public-write-read I got this : [INF] curl.cpp:RequestPerform(1940): HTTP response code 200 [DBG] curl.cpp:ReturnHandler(295): Return handler to pool: 31 [INF] cache.cpp:AddStat(344): add stat cache entry[path=/uploads/] [DBG] cache.cpp:GetStat(267): stat cache hit [path=/uploads/][time=4886.908116375][hit count=0] [DBG] fdcache.cpp:ExistOpen(1927): [path=/uploads][fd=-1][ignore_existfd=false] [DBG] fdcache.cpp:Open(1876): [path=/uploads][size=-1][time=-1] [DBG] s3fs.cpp:s3fs_getattr(832): [path=/uploads] uid=33, gid=33, mode=40775 unique: 4506, success, outsize: 120 unique: 4507, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0 unique: 4507, success, outsize: 16 unique: 4508, opcode: SETATTR (4), nodeid: 1, insize: 128, pid: 1417 chown / 33 33 [INF] s3fs.cpp:s3fs_chown(1634): [path=/][uid=33][gid=33] [ERR] s3fs.cpp:s3fs_chown(1637): Could not change owner for maount point. unique: 4508, error: -5 (Input/output error), outsize: 16 Not sure to understand, since I can do a chown for each sub dir separatly
kerem closed this issue 2026-03-04 01:43:22 +03:00
Author
Owner

@ggtakec commented on GitHub (May 15, 2016):

@MourIdri
It seems that you run s3fs with uid=1000/gid=1000 but you try to change mount point owner uid=33/gid=33.
s3fs could not change mount point owner and permission after it running.
You can use the uid/gid/mp_umask option instead.
Please try to set those.

Thanks in advance for your assistance.

<!-- gh-comment-id:219267827 --> @ggtakec commented on GitHub (May 15, 2016): @MourIdri It seems that you run s3fs with uid=1000/gid=1000 but you try to change mount point owner uid=33/gid=33. s3fs could not change mount point owner and permission after it running. You can use the uid/gid/mp_umask option instead. Please try to set those. Thanks in advance for your assistance.
Author
Owner

@MourIdri commented on GitHub (May 17, 2016):

Hi ggtakec-san :)

Your are right ! I did a wrong chmod/chown command. It is working now.

<!-- gh-comment-id:219649447 --> @MourIdri commented on GitHub (May 17, 2016): Hi ggtakec-san :) Your are right ! I did a wrong chmod/chown command. It is working now.
Author
Owner

@ggtakec commented on GitHub (May 29, 2016):

@MourIdri I'm glad about your result.
I'm closing this issue.
Regards,

<!-- gh-comment-id:222336752 --> @ggtakec commented on GitHub (May 29, 2016): @MourIdri I'm glad about your result. I'm closing this issue. Regards,
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#222
No description provided.