yangljun / s3fs

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

How to mount s3fs in read-only mode #378

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm interested in mounting an s3fs volume on my dev server, in read-only mode. 
Is it possible to enforce read-only somehow in the fstab?

Original issue reported on code.google.com by jm.magnu...@gmail.com on 17 Oct 2013 at 11:16

GoogleCodeExporter commented 9 years ago
Hi,

I think you can use umask option in entry of fstab or command line.

Regards,

Original comment by ggta...@gmail.com on 28 Oct 2013 at 9:03

GoogleCodeExporter commented 9 years ago
I tried setting umask=0333 in fstab, which prevents me from writing new files 
to the mounted directory, but it still allows files to be deleted from the 
mounted directory... am I doing something wrong?

Original comment by jm.magnu...@gmail.com on 29 Oct 2013 at 6:33

GoogleCodeExporter commented 9 years ago
Hi,

At first, you should use umask as 0222 instead of umask=0333.
But umask is not protected writing by root user.

I think you can set "-r"(or -ro) option in command line or fistab, then under 
the mount point  is read only.

Regards,

Original comment by ggta...@gmail.com on 30 Oct 2013 at 1:53

GoogleCodeExporter commented 9 years ago
Hi,

This issue is left for a long term, and s3fs project moved on 
Github(https://github.com/s3fs-fuse/s3fs-fuse).
So I closed this issue.

If you have a problem yet, please post new issue.

Regards,

Original comment by ggta...@gmail.com on 23 Dec 2013 at 3:25