Not able to cd or ls into drive mounted by s3fs

An issue I encountered with not being able to move into a drive mounted by s3fs

Earlier I was playing with S3FS to mount an Amazon S3 instance as a drive on a linux machine.

The mount appeared to work correctly but I experienced some issues around navigating around the mounted drive, some investigation showed that the files and folders that were coming from Amazon where all down as being owned by root.

This shouldn’t have been the case.

The fix I used was to pass the user ID and group ID into the parameters that the mount used within /etc/fstab.

This is what my /etc/fstab looked like;

s3fs#my_mount /mnt/my_mount fuse allow_other,uid=1000,default_acl=public-read,gid=1000 0 0

In the above then uid is the user ID you want to associate the mount with and gid is the group.

In Ubuntu to find the user ID I normally run cat /etc/passwd which lists all the users and their IDs and to get the group ID I run cat /etc/group which displays all the groups along with their IDs.


Recent posts View all

Web Dev

Updating payment method email addresses in Stripe

You can't update the email address associated with a payment method in Stripe via their dashboard, you need to use the Stripe CLI

Ruby

Irreversible Rails Migrations

What are irreversible migrations and how might we use them to our advantage?