Samba

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • File Locked

    0 answers - 1579 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    When this happens with our NAS I log into it and grep the output of the
    smbstatus command looking for the filename. That gives the PID of the
    process with the file lock. Then I grep the output of smbstatus looking for
    the PID and that tells you which user has the file open.
    Message
    From: @lists.samba.org
    [@lists.samba.org] Behalf
    Leon Stringer
    Sent: Tuesday, September 19, 2006 8:27 AM
    To: samba (AT) lists (DOT) samba.org
    Subject: [Samba] File Locked
    Hi,
    I've got a Word document on a Samba share that I can't rename, overwrite or
    open. Attempting to rename it gives: Cannot rename Filename: There has been
    a sharing violation.
    Attempting to open it gives: Filename.doc is locked for editing by 'another
    user'.
    This is on a NAS box so I can't say which Samba version it is.
    There are no temporary files in the share to show who might have this file
    open. If I create a file in this share as the same owner, it gets the same
    ACL but I can edit it.
    Does anyone have any advice for how I might troubleshoot this? If it *is*
    opened by another user how can you determine who it is? If not, how can the
    problem be fixed.
    (I appreciate that this is probably a Windows SMB rather than Samba problem
    but with Windows I can see who has what open in Server Manager).
    Thanks in advance for any help
    Leon
    Email sent from www.ntlworld.com
    Virus-checked using McAfee(R) Software
    Visit www.ntlworld.com/security for more information

Re: File Locked


max 4000 letters.
Your nickname that display:
In order to stop the spam: 4 + 3 =
QUESTION ON "Samba"

EMSDN.COM