[TriLUG] Samba file locks
Lee Fickenscher
elfick at mac.com
Wed Dec 7 08:46:20 EST 2005
Joe,
Perfect! Thats exactly what I needed to know.
I was hoping for something that did a direct correlation between file
and user, but with the info that you've pointed out I can just script
something to do that for me.
Thanks!
-Lee
On Dec 6, 2005, at 10:38 PM, Joe Allesi wrote:
> 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
More information about the TriLUG
mailing list