On 2020-10-06, Dennis Lee Bieber wrote:
> On Tue, 6 Oct 2020 15:38:14 +0200, Hans-Werner Kneitinger
> declaimed the following:
>
>
>>If I mount the nfs manually and check with MC to the dir/files, user and
>>group are right, but mode is always 0777. It should be 0640 or 0644. Has
>>sombody an idea wats going wrong?
>
> Is this applicable? https://linux.die.net/man/1/rsync
> """
> -p, --perms preserve permissions
> """
He has that set - '-a'
from man entry...
-a, --archive archive mode; equals -rlptgoD (no -H,-A,-X)
It a bit baffling as I do almost exactly the same over nfs version 3.
But to another linux machine that I setup - not some NAS box.
One thing I have added recently is --numeric-ids option as I found that
while I keep all user uids equal across my system, some of the system
uids - those less than 1000 e.g. for various demon services etc - change
depending on distro and version of distro it seems. So some of my backup
had their uids changed to match to same username on the NFS server. When
I copied back after a disk break I got a few niggles. I don't know why I
thought it should have mapped back - but ... who knows. The --numeric-ids
means I dont have to care how I put the files back.
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|