When a Volume Mounted with Goofys is Not Visible to Other Users

2018-07-11 11:42 (6 years ago) ytyng

If the volume mounted with Goofys is not visible to other users

If this is not done, other users will encounter a "permission denied" error even if viewed by root.

1.

Enable user_allow_other in /etc/fuse.conf.

In Ansible, it would look like this:

- lineinfile:
path: /etc/fuse.conf
insertafter: '#user_allow_other'
line: 'user_allow_other'
become: yes

Something like this.

2.

Include -o allow_other in the Goofys command.

In bash, it would look like this:

killall goofys
sleep 1s

export GOPATH=/usr/local/golang

sudo -u ubuntu ${GOPATH}/bin/goofys -o allow_other --region ap-northeast-1 your-s3-backet-name /mnt/your-mountpoint

3.

Example of test method

sudo -u www-data ls /mnt/your-mountpoint

Current rating: 3
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.

Archive

2025
2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011