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 >> > >
Sébastien Le Ray
2015-Jun-14 18:06 UTC
[Samba] OT: suggestion need on Sync in the windows way.
Mount wontt be a solution since you'll force things to one uid/gid Why do you need bidir sync? Le 14/06/2015 20:01, Min Wai Chan a ?crit :> 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 >>> >>
Min Wai Chan
2015-Jun-15 06:04 UTC
[Samba] OT: suggestion need on Sync in the windows way.
I agree, If the synology uid and gid is working right than nfs would be great. it would be easy... However, it seem that they have something else running under samba/nfs to control the permission on the files/folder... I would like to use bidir sync because I like some of the synology feature on remote sync and etc which is making remote access much easier compare to samba... But these sync function don't support remote mount so what I'm thinking is to do a bidirection-sync the files over... Any suggestion? On Mon, Jun 15, 2015 at 2:06 AM, S?bastien Le Ray <sebastien-samba at orniz.org> wrote:> Mount wontt be a solution since you'll force things to one uid/gid > > Why do you need bidir sync? > > > Le 14/06/2015 20:01, Min Wai Chan a ?crit : > >> 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 >>>> >>>> >>> >