NFSv4 Permissions issue
Issue
- Permission issue on nfsv4 volume in a RHEL VMs.
- NFS server is Hitachi HNAS, SMU400, and the client is a RHEL 7.3.
- Pre-requisites xheck done i.e user/group ids identical, and the nfs domainalso same.
- All works fine, we can create folders and files with the accorded user, but we can’t do chgrp/chown operations.
- Here are the details:
x.x.x.x:/prod_mqm_shared_qmgrs_2 on /mnt/nfs type nfs4 (rw,relatime,vers=4.0,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=y.y.y.y,local_lock=none,addr=x.x.x.x)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=388208k,mode=700)
[mqm@RHEL7 nfs]$ pwd
/mnt/nfs
[mqm@RHEL7 nfs]$ id
uid=1001(mqm) gid=1001(mqm) groups=1001(mqm)
[mqm@RHEL7 nfs]$ touch file1
[mqm@RHEL7 nfs]$ ll
total 0
-rw-rw-r-- 1 mqm mqm 0 Nov 7 13:31 file1
[mqm@RHEL7 nfs]$ chown mqm:mqm file1
chown: changing ownership of ‘file1’: Operation not permitted
[mqm@RHEL7 nfs]$
Environment
- Red Hat Enterprise Linux 6,7
- Hitachi NAS
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.
