クライアントでマウントした NFS 共有のアクセス権を変更できない
Issue
- ファイルのアクセス権は NFS 共有内で変更できますが、クライアントの root を使用してもディレクトリのアクセス権を変更することができません。
- 以下は失敗例です。NFS クライアントマウントオプションが含まれます。
# mount | grep nfs
nfsd on /proc/fs/nfsd type nfsd (rw)
1.1.1.253:/xyz/export on /opt/oracle/foobar002 type nfs (rw,user=oracle,noexec,nosuid,nodev,user,noac,nfsvers=3,tcp,rsize=1048576,wsize=1048576,addr=1.1.1.253)
# ls -ld /opt/oracle/foobar002
drwxrwxrwx 2 root root 2048 Mar 19 09:52 /opt/oracle/foobar002
$ touch /opt/oracle/foobar002/oracle-test.txt
$ ls -l /opt/oracle/foobar002/
total 0
-rw-r--r-- 1 oracle oinstall 0 Mar 19 15:19 oracle-test.txt
-rw-rw-r-- 1 myuidgid myuidgid 0 Mar 19 15:18 test-2.txt
-rw-r--r-- 1 4294967294 4294967294 0 Mar 19 15:17 test.txt
# chown oracle /opt/oracle/foobar002/
chown: changing ownership of `/opt/oracle/foobar002/':Operation not permitted
Environment
- Red Hat Enterprise Linux 5.6
- NFS クライアント
- NFS サーバー
- /etc/exports:
/xyz/export *(sync,rw,root_squash,anonuid=4294967294,anongid=4294967294,no_subtree_check,anonuid=4294967294,anongid=4294967294,fsid=29247)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
