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

2018-07-11 02:42 (7 years ago)
When a Volume Mounted with Goofys is Not Visible to Other Users

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

Please rate this article
Current rating: 3.0 (2)
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.

Categories

Archive