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

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -