一部のシステムユーザーにのみ該当するNFS3権限の問題

一部のシステムユーザーにのみ該当するNFS3権限の問題

私のnfs共有はubuntu 22 VMにマウントされており、ルート、ubuntu、および私が作成したテストユーザーが読み書きできます。ただし、plexインストールで作成されたplexユーザーは読み書きできません。sudo su plexコンテンツを読み取ろうとすると、「古いファイルハンドル」が表示されます。

plex@plex:/home/ubuntu$ ls -la /mnt/
total 12
drwxr-xr-x  3 root   root     4096 Jan 18 05:14 .
drwxr-xr-x 19 root   root     4096 Jan 18 05:13 ..
drwxr-sr-x  5 ubuntu testuser 4096 Sep 25 07:07 Share
plex@plex:/home/ubuntu$ ls -la /mnt/Share/
ls: cannot open directory '/mnt/Share/': Stale file handle

nfs共有設定:

/srv/pool/Share     192.168.2.0/24(fsid=1,insecure,rw,sync,no_root_squash,no_subtree_check,anonuid=1000,anongid=1000)
/srv/pool/Backup    192.168.2.0/24(fsid=2,insecure,rw,sync,no_root_squash,no_subtree_check,anonuid=1000,anongid=1000)
/srv/pool/General   192.168.2.0/24(fsid=3,insecure,rw,sync,no_root_squash,no_subtree_check,anonuid=1000,anongid=1000)

この問題を解決する方法や追加のデバッグ手順に関するヒントをお寄せいただきありがとうございます。

ベストアンサー1

anonuidとgidの設定を適用するには、そのall_squash設定も有効にする必要があることがわかりました。最初は、これらのフィールドを追加すると、中間リダイレクトが自動的に発生すると思いました。アップデート後にlsplexユーザーとしてログインすると、共有ディレクトリにアクセスできます。

おすすめ記事