I have two servers svrA and svrB (both CentOS 7), where svrA is a turn-key system so I cannot change anything on it, and svrB is the one I am working on. svrA contains log files I need to transfer to svrB. svrA provides these via a read-only NFS mount, with the following
These logfiles have all kinds of permissions, some can only be read by root - and this is the problem.
On my svrB, I have a log transfer script that mounts the NFS share and copies the files from svrA to svrB. For security reasons, I don't want that script to run as root on svrB, it has a dedicated user instead. But this means I cannot access some files on the NFS share of svrA!
Is there any way I can mount the svrA NFS share from svrB "with root permissions", so I can read "mode 600, owner root" files from svrA, without having to
- become root on svrB, or
- change anything on svrA?
I know that on OpenVMS, the NFS client can specify a UID/GID via a proxy. But is it possible with CentOS 7?