Linux NFS - set default user for new files on nfs share -
i use centos nfs server nad 2 centos machines clients. have problems permisions/ownership new files/directories created clients on nfs share.
my exports file:
/media/nfsshare *(rw,sync,no_root_squash)
and idmap.conf:
[mapping] nobody-user = nobody nobody-group = nobody
finally, fstab on clients:
172.18.2.132:/media/nfsshare /shared-disk nfs rw,addr=<ip> 0 0
i set /shared-disk permissions 777 , clients can create/delete files on mounted share. but:
- i don't want 777 permissions. rather need 660
- every file created clients has owner: '-2 - user #-2' , group '-2'. want ownership user created file - system users each client has same ids, groups , group ids.
any tips?
Comments
Post a Comment