OCI: Non-Root User Unable to Create Files in OCIFS Filesystem
Applies to:
Oracle Cloud Infrastructure
Linux x86-64
Symptoms
For this case, the bucket name is bucket1 and is mounted on /ocifsmnt filesystem.
Non-root user "opc" is unable to create files as an ordinary user in an OCIFS mounted filesystem.
As opc run the following to create a file in /ocifsmnt :
$ touch /ocifsmnt/opc-file.txt touch: cannot touch '/ocifsmnt/opc-file.txt': Permission denied
Cause
Incorrect mount options used to mount the OCIFS storage bucket.
Solution
1) Mount the ocifs with option "-o allow_other"
$ sudo mount -t fuse.ocifs bucket1 /ocifsmnt -o allow_other
2) Check the mount
$ mount | grep fuse fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) bucket1 on /ocifsmnt type fuse.ocifs (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other)
Tagged:
0