Koozali.org: home of the SME Server

Sharing violation - read only

Donquick

Sharing violation - read only
« on: January 12, 2007, 02:46:43 PM »
Hi,

We are using SME 7 server with 3 x Win NT workastations.

Quite often when opening a file which is on the server (say a Word file or something); even after it is closed the user retains ownership for some considerable period of time.  This means that if another user opens it they get a read only copy without warning.  If there is an attempt to modify rename etc there is a 'sharing violation' as you would expect under these circumstances.

The temporary file created by word is created and removed immediately as usual but the ownership on the server side persists.

Has anybody encountere this before - and is there a way of getting the server OS to update its records more frequently.

Thanks for your help.

(If you are just going to tell me that i need to read some books on Linux, which is what happens usually - 'I know I am an idiot but that's my problem' please don't tell me to read some books as i probably won't understand them - lol)

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Sharing violation - read only
« Reply #1 on: January 12, 2007, 11:36:08 PM »
Quote from: "Donquick"
Quite often when opening a file which is on the server (say a Word file or something); even after it is closed the user retains ownership for some considerable period of time.  This means that if another user opens it they get a read only copy without warning.


So if someone opens the word doc and while you look at the server and use "smbstatus" to see the word doc being accessed as soon as that person exits the word doc type "smbstatus" again and you should see that the word doc should no longer be in the list, the only other thing I can think is that the NT boxes are not breaking the oplocks correctly, can you try with XP? You'll also probably get people saying "Why you still using NT boxes :shock: "
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Donquick

Sharing violation - read only
« Reply #2 on: January 15, 2007, 01:12:34 PM »
I told you i was stupid - I meant to say 3 x Win 2000 Pro Workstations not 'NT' as i actually posted - not sure what happened there !

Thanks for your post - I have tried the command you suggest to monitor open files and lock status/exclusivity - i didn't know about this command until then.

I will monitor the situation and wait for the problem to reoccur and see what the status is showing then.

I will revert once i know more.

Thanks

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Sharing violation - read only
« Reply #3 on: January 15, 2007, 02:51:16 PM »
Quote from: "Donquick"
i didn't know about this command until then.



Try it with the watch command to make it a little bit more real time.

Code: [Select]
watch -n 0.1 smbstatus
Regards,
William

IF I give advise.. It's only if it was me....

Donquick

Sharing violation - read only
« Reply #4 on: January 16, 2007, 11:27:38 AM »
I see what you mean, but the watch seems to display just the first page of the information which shows the days logon info and doesn't change as time passes.  

I have tried the watch command with the -d parameter hoping that it will display the changes each time rather than the whole story, but i still get the first screen only (three computers' id and a few ibay logons with times)

In either case i need to control-z to get control back.

Am i missing something.

Thanks,

Magnus

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Sharing violation - read only
« Reply #5 on: January 16, 2007, 11:55:01 AM »
You probably have more than one screen of info and watch is returning you to the start each time.
Regards,
William

IF I give advise.. It's only if it was me....