Min Wai Chan
2015-Jun-14 14:48 UTC
[Samba] OT: suggestion need on Sync in the windows way.
Dear All, Sorry to post it here as I don't see any better to post this question I've.... I've have a samba 4 files server (Member server of a AD DC) And also a synology diskstation. The AD DC is a Samba 4 AD DC and it have RFC2307 enable and configured. I would like to sync 2 folder so that they can have the same files contents and also controls. But the synology diskstation don't read the RFC2307 uid and gid, when I ssh to the diskstation, it was using a different uid and gid. so I think that the only way to fix this is to smb mount... But which users I should mount it so that it and how I should sync it so that all the access control is correct? Any suggestion are welcome. Regards, Min Wai
Sébastien Le Ray
2015-Jun-14 16:54 UTC
[Samba] OT: suggestion need on Sync in the windows way.
Hi rsync -a should be able to perform chown using usernames rather than uids so your files would still be owned by the right user. Regards Le 14/06/2015 16:48, Min Wai Chan a ?crit :> Dear All, > > Sorry to post it here as I don't see any better to post this question > I've.... > > I've have a samba 4 files server (Member server of a AD DC) > And also a synology diskstation. > The AD DC is a Samba 4 AD DC and it have RFC2307 enable and configured. > > I would like to sync 2 folder so that they can have the same files contents > and also controls. > > But the synology diskstation don't read the RFC2307 uid and gid, when I ssh > to the diskstation, it was using a different uid and gid. > > so I think that the only way to fix this is to smb mount... > > But which users I should mount it so that it and how I should sync it so > that all the access control is correct? > > Any suggestion are welcome. > > Regards, > Min Wai
Min Wai Chan
2015-Jun-14 18:01 UTC
[Samba] OT: suggestion need on Sync in the windows way.
Hi Sebastien, Rsync is only one way right, any 2 way sync solution? Thank you. S?bastien Le Ray <sebastien-samba at orniz.org> ? 2015?6?15? ??????> Hi > > rsync -a should be able to perform chown using usernames rather than uids > so your files would still be owned by the right user. > > Regards > > Le 14/06/2015 16:48, Min Wai Chan a ?crit : > >> Dear All, >> >> Sorry to post it here as I don't see any better to post this question >> I've.... >> >> I've have a samba 4 files server (Member server of a AD DC) >> And also a synology diskstation. >> The AD DC is a Samba 4 AD DC and it have RFC2307 enable and configured. >> >> I would like to sync 2 folder so that they can have the same files >> contents >> and also controls. >> >> But the synology diskstation don't read the RFC2307 uid and gid, when I >> ssh >> to the diskstation, it was using a different uid and gid. >> >> so I think that the only way to fix this is to smb mount... >> >> But which users I should mount it so that it and how I should sync it so >> that all the access control is correct? >> >> Any suggestion are welcome. >> >> Regards, >> Min Wai >> > >