[XP 2k]Offline folder niet gesynched van andere user *

Pagina: 1
Acties:

  • CmdrKeen
  • Registratie: Augustus 2000
  • Laatst online: 25-03 16:41

CmdrKeen

Krentenboltosti

Topicstarter
[Gezocht.]
Sorry voor de rare topictitel, veel duidelijker kan ik het in dat kleine vakje niet krijgen. Ik heb gezocht bij http://support.microsoft.com/ naar "offline folder user", toch wel algemene termen. Van de 12 artikelen kwamen er twee in de buurt, maar zowel 307853 als 312171 waren niet echt van toepassing. De Search@GoT leverde geen relevante info op voor mij, alleen andere problemen, vaak met caching te maken hebbende. Google levert me überhaupt weinig info over offline files en folders.

[De situatie.]
User A en B zitten in één domein (users: WXP Pro, servers: FreeBSD met Samba, zoals goedgekeurd door ome Bill zelf) waar een fileserver met een share voor documenten is (\\server\Share). Onder de share "Share" zitten map X en map Y.

User A heeft bij Share aangegeven dat deze folder, en alle onderliggende files en folder, offline available moeten zijn. Dit gaat prima. Als User A zelf een nieuwe map op Share maakt, wordt die ook netjes op Share EN offline beschikbaar gemaakt.

[Het probleem.]
Als User B een nieuwe map in Share maakt, dan wordt die nieuwe map voor User A NIET offline beschikbaar. Beide users hebben alle mogelijke rechten op alle mappen.

Waarom wordt de map die User B maakt niet automatisch voor User A offline available, terwijl files die naast die map in dezelfde share staan, *wel* offline available worden?

Ik hoop dat het probleem een beetje duidelijk is. Ik heb er redelijk wat tijd in gestoken om het probleem te reproduceren en te zoeken naar oorzaken en oplossingen, maar erg weinig hierover gevonden.

/Toevoeging: sorry, vergeten OS in topictitel te vermelden. Moet [XP, 2k] zijn, denk ik.

[ Voor 5% gewijzigd door CmdrKeen op 29-12-2003 14:56 ]

Bloed, zweet & koffie


  • momania
  • Registratie: Mei 2000
  • Laatst online: 21:29

momania

iPhone 30! Bam!

Vilenin schreef op 29 december 2003 @ 14:55:
/Toevoeging: sorry, vergeten OS in topictitel te vermelden. Moet [XP, 2k] zijn, denk ik.
O-)

Neem je whisky mee, is het te weinig... *zucht*


  • CmdrKeen
  • Registratie: Augustus 2000
  • Laatst online: 25-03 16:41

CmdrKeen

Krentenboltosti

Topicstarter
Eenmalige kick acht minuten voordat 't eigenlijk toegestaan is.

Om toch nog iets nuttigs te zeggen, voeg ik eraan toe dat ik vermoedt dat het hier om een feature gaat en niet om een "probleem".

[ Voor 7% gewijzigd door CmdrKeen op 30-12-2003 14:48 ]

Bloed, zweet & koffie


  • CmdrKeen
  • Registratie: Augustus 2000
  • Laatst online: 25-03 16:41

CmdrKeen

Krentenboltosti

Topicstarter
Lekker topic geworden, dit :/

Voor de searchers onder ons: http://www.mail-archive.c...s.samba.org/msg28509.html
Re: [Samba] Synchronizing offline files that I am not the owner of fails (Samba 2.2.8/3.0.0)

--------------------------------------------------------------------------------

From: Jeremy Allison
Subject: Re: [Samba] Synchronizing offline files that I am not the owner of fails (Samba 2.2.8/3.0.0)
Date: Wed, 19 Nov 2003 18:13:42 -0800

--------------------------------------------------------------------------------

On Fri, Oct 31, 2003 at 12:03:10PM +1300, Craig Box wrote:
> Hi everyone,
>
> Problem: Windows XP's offline files synchronization fails with an
> "Access is denied" message, if you have edited an offline file that you
> have group based access to, but you are not the owner of. (Not using an
> ACL-compatible filesystem.)
>
> In 2.2.x the change appears to be successfully written to the server
> anyway; subsequent synchronization attempts suggests that the network
> file is more up to date than the local version, and accepting this
> clears the error and leaves the newer version on both machines.
>
> On 3.x it appears not to work at all. When I'm online I can edit the
> file; when I'm offline and edit, the changes aren't written back.
>
>
> How to reproduce:
>
> 1. Create a Samba share (a home directory will suffice) that you can
> write to
> 2. Create a file in that share (using Windows), and mark it available
> offline
> 3. On Linux, set the ownership of the file to be group owned by your
> primary group, but a different user (simulating an edit by that user)
> 4. Stop Samba ("go offline")
> 5. Wait for Windows to say the share is offline, and edit the file in
> Windows. Save and close the file.
> 6. Start Samba again
> 7. Attempt to synchronize.
>
> A level 10 log for synchronizing 'more.txt' can be found at
> http://www.hs.net.nz/~crb/log.wks-acer.gz

Ok, I have made this work with Samba 3.0.1pre3.

What you need to do is to ensure that smbd is compiled with ACL
support, and running on a filesystem with posix acls. Then you
also need to set the parameter "dos filemode = yes" for the
share.

Then the sync with a non-owned file will work. The reason for
this is somewhat complex. Windows does a sync by creating a
new file with a temporary name, then sets an ACL on it that
matches the current one (but seems to add write access for the
current user, not just the owner). This must succeed else
the sync will fail. Then it sets the DOS attributes, again
this must succeed or the sync will fail. Under POSIX we encode
the attributes in the file permissions and these can only be
changed by the owner, unless the "dos filemode" parameter
is set.

Hope this helps, it can be done !

Jeremy.
Ik heb in Samba "dos" op "yes" gezet, en dit werkt vooralsnog, hoewel ik nog meer moet testen. Versie van Samba (de eerstgenoemde) niet aangepast.

Bloed, zweet & koffie