2012-11-23 06:58 AM
I have an NFSv3 export configured, and a specific host granted "Read Write" access. When I mount this NFS export on the remote client, all permissions automatically become 777 and is owned by root. I want the NFS filesystem to be owned by another user, and I don't want permissions to be 777 (so not everyone on the remote host has read/write access to it).
I believe I need to add users with to the Filer's /etc/passwd and /etc/group with UID/GID's that match those on the remote host first of all. How can I do this? I don't see an option in useradmin to specify UID/GID. Do I need to manually drop to a shell and modify /etc/passwd and /etc/group?
How do I keep the export from forcing 777 on the remote host?
2012-11-23 07:55 AM
With NFSv4 you dont have to create user on the filer, you define just the nfs.v4.id.domain that to be the same that you will configure in you client.
To set UID/GID on the file/diretory you could use setfacl commande on the client.
2012-11-23 08:15 AM
whith setfacl you can for exemple leave the root as owner and set rwx ( or as you need) right to a list of users.
I guess you are mounting a qtree, so you can also change de owner from root to another user with chown command ( for this, you have to mount the volume and change the owner on the qtree)
2012-11-25 01:35 PM
Ok, got the mount working correctly, but I'm unable to use setfacl. ACL support is enabled on the filer.
setfacl: hi3: Operation not supported
Client is RHEL6. Export is mounted with:
filer:/vol/vol4/ePortalShare on /mnt/test type nfs4 (rw,rsize=65536,wsize=65536,hard,intr,proto=tcp,timeo=600,retrans=3,sec=sys,addr=172.26.103.122,clientaddr=172.26.101.56)