Goofys でマウントしたボリュームが他のユーザーから見れない場合

投稿者: ytyng 5年, 9ヶ月 前

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

コメント

アーカイブ

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