Goofys でマウントしたボリュームが他のユーザーから見れない場合
2018-07-11 02:42 (7 years ago)

Goofys でマウントしたボリュームが他のユーザーから見れない場合
これを行ってないと、他ユーザーがマウントしたボリュームはたとえ root で見ても permission denied になる。
1.
/etc/fuse.conf の、user_allow_other を有効にする。
ansible だと
- lineinfile:
path: /etc/fuse.conf
insertafter: '#user_allow_other'
line: 'user_allow_other'
become: yes
こんなの。
2.
goofys コマンドで、-o allow_other を入れる。
bashだと
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.
テスト方法例
sudo -u www-data ls /mnt/your-mountpoint
評価をお願いします
現在の評価: 3.0 (2)
著者は、アプリケーション開発会社 Cyberneura を運営しています。
開発相談をお待ちしています。
開発相談をお待ちしています。