xiongxu / s3fs

Automatically exported from code.google.com/p/s3fs
GNU General Public License v2.0
0 stars 0 forks source link

handle ownership #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
handle ownership (just like mode and mtime?)

Original issue reported on code.google.com by rri...@gmail.com on 4 Mar 2008 at 12:03

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
great!

Original comment by rri...@gmail.com on 21 Mar 2008 at 5:07

GoogleCodeExporter commented 9 years ago
Author: rrizun
Date: Tue Apr  1 15:56:37 2008
New Revision: 128

Modified:
  trunk/s3fs/s3fs.cpp

Log:
set uid/gid

Modified: trunk/s3fs/s3fs.cpp
==============================================================================
--- trunk/s3fs/s3fs.cpp (original)
+++ trunk/s3fs/s3fs.cpp Tue Apr  1 15:56:37 2008
@@ -721,6 +721,9 @@
       if (S_ISREG(stbuf->st_mode))
               stbuf->st_blocks = stbuf->st_size / 512 + 1;

+       stbuf->st_uid = getuid();
+       stbuf->st_gid = getgid();
+
       return 0;
 }

@@ -1226,6 +1229,9 @@
                       if (S_ISREG(st.st_mode))
                               st.st_blocks = st.st_size / 512 + 1;

+                       st.st_uid = getuid();
+                       st.st_gid = getgid();
+
                       auto_lock lock(stat_cache_lock);
                       stat_cache[stuff.path] = st;
               }

Original comment by rri...@gmail.com on 1 Apr 2008 at 10:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
ok!

Original comment by rri...@gmail.com on 2 Apr 2008 at 1:04

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I've implemented uid/gid in s3fs r152... persists uid and gid *numerically* in
x-amz-meta-uid and x-amz-meta-gid

Original comment by rri...@gmail.com on 9 May 2008 at 12:09

GoogleCodeExporter commented 9 years ago
Issue 167 has been merged into this issue.

Original comment by dmoore4...@gmail.com on 7 Mar 2011 at 7:31

GoogleCodeExporter commented 9 years ago
Issue 192 has been merged into this issue.

Original comment by dmoore4...@gmail.com on 29 May 2011 at 7:20

GoogleCodeExporter commented 9 years ago
Whats up with this ownership patch guys?  Can you access a mount point as a 
non-root user yet?  Please someone write back!

Original comment by rsyn...@gmail.com on 19 Mar 2012 at 1:14

GoogleCodeExporter commented 9 years ago
Any updates on this? I would like to serve images from an s3fs mount, however 
the folder needs to be owned by www-data.

Original comment by andrew.s...@gmail.com on 3 Dec 2012 at 2:04

GoogleCodeExporter commented 9 years ago
Any news on this issue?I installed s3fs yesterday and i still can't change the 
ownership...very important!

Original comment by a.raspi...@gmail.com on 27 Jan 2013 at 3:05

GoogleCodeExporter commented 9 years ago
Hi

I think this issue is very important, too.
If I can, I try to fix this problem.

But the mkdir function for the FUSE interface does not tell us about UID and 
GID.
The s3fs set UID/GID in the mkdir function by calling the getuid() and getgid() 
in that function.

Lastest code, 
-------
  stbuf->st_uid = get_uid(meta["x-amz-meta-uid"].c_str());
  stbuf->st_gid = get_gid(meta["x-amz-meta-gid"].c_str());
-------

It is set by the result of reading object's attributes.

If you teach me, I want to know below.
* Which account your s3fs process is running on?
* Do you run s3fs with allow_other option?
* Could you allow to change attribute or owner the directory?

I think I need to know how we should do for this problem.

Regards.
Takeshi

Original comment by ggta...@gmail.com on 28 Jan 2013 at 2:31

GoogleCodeExporter commented 9 years ago
I updated s3fs as 1.63(r390) today.

This version fixed this issue.
Please try this version.

If you find something wrong, please let me know.

Original comment by ggta...@gmail.com on 24 Feb 2013 at 9:31

GoogleCodeExporter commented 9 years ago
Issue 192 has been merged into this issue.

Original comment by ggta...@gmail.com on 2 Nov 2014 at 4:20