[CentOS] set default permission to deployuser:deployuser for nfs common mount point /mnt/test

Sat Nov 5 16:18:07 UTC 2022
Kaushal Shriyan <kaushalshriyan at gmail.com>

Hi,

I am running two GCP GCE VM instances running CentOS Linux release 7.9.2009
(Core) behind https load balancer. I am using
https://cloud.google.com/filestore#documentation to mount the nfs server
common mount point to both client servers.

#mount 10.0.0.2:/vol1 /mnt/test

I did chown -Rc deployuser:deployuser (user:group) /mnt/test. When the php
code uploads any file to the /mnt/test folder, the file permission is owned
by php-fpm:php-fpm (user:group)

Please guide and let me know how to set it to the default permissions
of deployuser:deployuser (user:group) for all files and folders created in
nfs server common point /mnt/test.

Thanks in advance.

Best Regards,

Kaushal