Page 1 of 1
Rsync permission not copying over
Posted: 13 Jan 2023, 08:43
by kenlewisesq
I am Rsyncing files from a TNAS running 5.1.13 to a TNAS running 5.0.176. The files copy correctly but only the admin account can access them on the destination TNAS. Is there a setting to allow permissions to pass through to the destination server? Ideally the admin account on the target device would have ownership over the files but the shared accounts (accounts which appear on both servers) would retain their rights.
Re: Rsync permission not copying over
Posted: 13 Jan 2023, 18:24
by TMSupport
Folder permissions could not be copied. You need to go to Control Panel - Shared Folder, click "Edit" to set permissions.
Re: Rsync permission not copying over
Posted: 13 Jan 2023, 19:55
by kenlewisesq
Thank you for the reply. Is it possible to support the rsync archive flags such as -p to preserve the permissions as discussed in this article
https://www.baeldung.com/linux/rsync-archive-mode?
Re: Rsync permission not copying over
Posted: 14 Jan 2023, 09:25
by kenlewisesq
Also, files and folders copied to a shared folder do NOT inherit the permissions for that shared folder.
Re: Rsync permission not copying over
Posted: 14 Jan 2023, 15:14
by TMSupport
kenlewisesq wrote: ↑14 Jan 2023, 09:25
Also, files and folders copied to a shared folder do NOT inherit the permissions for that shared folder.
Edit the shared folder and select "Permissions are inherited to all directories".
Re: Rsync permission not copying over
Posted: 14 Jan 2023, 20:08
by kenlewisesq
Thanks. I do that already but was hoping to avoid that step. Please consider implementing automatic permission inheritance or the rsync archive flags.