Re: set default permission to deployuser:deployuser for nfs common mount point /mnt/test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> 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)

Wouldn't it be easiest to run the PHP code as user deployuser?

Otherwise you may have to fiddle with setuid/setgid flags on the
directories in /mnt/test.

Regards,
Simon

>
> 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
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> https://lists.centos.org/mailman/listinfo/centos
>


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux