[TriLUG] Samba file locks
Joe Allesi
jallesi at nc.rr.com
Tue Dec 6 22:38:12 EST 2005
Lee,
smbstatus should output something like the following:
PID Username Group Machine
-------------------------------------------------------------------
22781 john john john-machine
Locked files:
Pid DenyMode Access R/W Oplock Name
--------------------------------------------------------------
22781 DENY_NONE 0x20089 RDONLY EXCLUSIVE+BATCH /home/file.txt
You should be able to match the locked file PID with a user/group/
computer in the lines above the locked files. If the output does
show a specific PID to user mapping, you can then contact the user
and have them stop using whatever application is requesting the lock
via the share. As a last resort, you should be able to kill the
offending PID.
Joe
On Dec 6, 2005, at 10:48 AM, Lee Fickenscher wrote:
> Greetings all,
>
> I have a file locked on a samba server that no one is currently
> accessing. I can see the lock using smbstatus but I don't know how
> to associate the lock with a particular user. I've googled and
> found no pertinent information and the samba doc section on locks
> ( Chapter 16. File and Record Locking ) doesn't appear to address
> this issue either.
>
> My question is:
>
> 1) How does one associate a lock with a particular user, so I can
> verify that the lock should be there
> and
> 2) How can those locks be cleared if they shouldn't be there
>
> Thanks,
> Lee--
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/
> trilug
> TriLUG Organizational FAQ : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
More information about the TriLUG
mailing list