You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: Non-Root User Unable to Create Files in OCIFS Filesystem

edited May 28, 2024 8:41AM in Linux

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)

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!