I have a ZimaOS system that I can (SSH) log into as UserA/PasswordA and also a Synology NAS that I can log into with the same UserA/PasswordA. They are both set as network drives (set up using UserA/PasswordA) on a Windows PC (I don't think the windows login is relevant but it is not UserA/PasswordA).
There are files on the Synology NAS which have the owner:group UserA:GroupA which are in directories which have the owner:group UserA:GroupA
On the Windows PC when I drag and drop the files from the Synology NAS to the ZimaOS system the files subsequently have the user:group root:root and they are in directories which have the user:group root:root and the files have changed from rwxrwxrwx to rwxr--r--
What do I need to do to have these files/directories have the owner:group UserA/GroupA with any intervention?
So far I have found out about umask which I believe I can use to sort out the default file permissions.
I think but I haven't verified it that rsync does transfer the files in the way that I want.
There are files on the Synology NAS which have the owner:group UserA:GroupA which are in directories which have the owner:group UserA:GroupA
On the Windows PC when I drag and drop the files from the Synology NAS to the ZimaOS system the files subsequently have the user:group root:root and they are in directories which have the user:group root:root and the files have changed from rwxrwxrwx to rwxr--r--
What do I need to do to have these files/directories have the owner:group UserA/GroupA with any intervention?
So far I have found out about umask which I believe I can use to sort out the default file permissions.
I think but I haven't verified it that rsync does transfer the files in the way that I want.