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 >>>> >>>> >>> >
Bob of Donelson Trophy
2015-Jun-15 11:14 UTC
[Samba] OT: suggestion need on Sync in the windows way.
For bidirectional sync take a look at Unison (file synchronizer.) --- ------------------------- Bob Wooden of Donelson Trophy 615.885.2846 (main) www.donelsontrophy.com [1] "Everyone deserves an award!!" On 2015-06-15 01:04, Min Wai Chan wrote:> 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 thatthe 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 Links: ------ [1] http://www.donelsontrophy.com
Min Wai Chan
2015-Jun-15 15:56 UTC
[Samba] OT: suggestion need on Sync in the windows way.
Does Unision support ACL? If it would than this part guide would work. https://wiki.samba.org/index.php/SysVol_Bidirectional_Replication But it didn't.... On Mon, Jun 15, 2015 at 7:14 PM, Bob of Donelson Trophy < bob at donelsontrophy.net> wrote:> > > For bidirectional sync take a look at Unison (file synchronizer.) > > --- > > ------------------------- > > Bob Wooden of Donelson Trophy > > 615.885.2846 (main) > www.donelsontrophy.com [1] > > "Everyone deserves an award!!" > > On 2015-06-15 01:04, Min Wai Chan wrote: > > > 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 > > > Links: > ------ > [1] http://www.donelsontrophy.com > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba