Koozali.org: home of the SME Server

WinXP <--> Samba Wierd Probs

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
WinXP <--> Samba Wierd Probs
« on: June 08, 2005, 11:14:51 AM »
Has any else been effected by what may possibly be a Windows XP hotfix causing the following prob with Samba on SME

User can make a copy of a file but then cannot subsequently delete it

User can make folder but yhen cant delete it

User gets refused access to files already
on server

Word making wierd temp files that cant be deleted

If you have had this and fixed it could you post your fix ?

Thanks !
"If you don't know what you want, you end up with a lot you don't."

dhardy

WinXP <--> Samba Wierd Probs
« Reply #1 on: June 08, 2005, 09:20:18 PM »
This might be oplocks .... if you don't need them, turn them off ...

Copy this lot and paste into notepad, save as oplocks.reg and then double click to merge into the registry (or run regedit.exe oplocks.reg)


Code: [Select]

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]
"EnableOpLockForceClose"=dword:00000001
"EnableOpLocks"=dword:00000000


[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters]
"EnableOpLockForceClose"=dword:00000001
"EnableOpLocks"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MRxSmb\Parameters]
"OpLocksDisabled"=dword:00000001



This needs to be run at both ends in an MS environment - on the servers as well as the clients.

I think oplocks are off by default in SME (don't recall, correct me if you know different!) but can be tweaked with the Advanced Workgroup Contrib. They are supposed to improve multi-user access in shared file/folder environments - You will almost certainly not notice the difference with oplocks off, I didn't!

More here: http://www.superbase.com/services_tech_support_oplocks.htm

HTH

David.

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
WinXP <--> Samba Wierd Probs
« Reply #2 on: June 08, 2005, 10:31:43 PM »
Tnx - will try this tomo !
"If you don't know what you want, you end up with a lot you don't."

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
WinXP <--> Samba Wierd Probs
« Reply #3 on: June 25, 2005, 11:26:59 AM »
Regedits didnt make any difference.

I set file / directory creation to 777 and restarted samba.

This worked for about a week but now orig prob has come back again ...

Are MS trying to break samba in XP updates ?

Will Tridge ever be able to rest ?
"If you don't know what you want, you end up with a lot you don't."

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
WinXP <--> Samba Wierd Probs
« Reply #4 on: June 26, 2005, 09:33:24 AM »
gbentley
You don't say which version of SME you're using, but if it's 6.5RC1, may I advise extreme caution.  I had lots of problems trying to make this release work correctly & finally ran out of time.  I came to the (maybe hasty & wrong) conclusion that as it uses an early(ish) version of Samba v3, there are probably some problems internal to Samba. I don't see these problems on v2.2.8a

Further reading & .reg fixes for XP and shared-file access problems are available on my site here:

http://www.witzendcs.co.uk/html/nt_networking.html

The link at the foot of the page gives a useful guide for tuning Samba via smb.conf settings.
--
Nick......