LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to release file lock in SAMBA 3.2.5 share (MS Word [filename] is locked for edit. (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-release-file-lock-in-samba-3-2-5-share-ms-word-%5Bfilename%5D-is-locked-for-edit-833278/)

albertwt 09-20-2010 01:08 AM

how to release file lock in SAMBA 3.2.5 share (MS Word [filename] is locked for edit.
 
Hi All,

I'm having problem with the Samba 3.2.5 file share which host my MS-Word Document the user (user1) already restart her PC but still she cannot open the file from MS Word

here's the file and it's status on the samba drive:

Code:

fuso:/export/client1/projects/P1999-FSDC/ProjectMgmt/Requirements/CES Web/Issue 2.7# lsof | grep P1999-ces-rs04-issue2.7.doc
fuso:/export/client1/projects/P1999-FSDC/ProjectMgmt/Requirements/CES Web/Issue 2.7# smbstatus

Samba version 3.2.5
PID    Username      Group        Machine
-------------------------------------------------------------------
2448      sysadmin        12212        __ffff_10.2.3.130 (::ffff:10.2.3.130)

Service      pid    machine      Connected at
-------------------------------------------------------
projects    2448  __ffff_10.2.3.130  Mon Sep 20 08:26:43 2010

No locked files

fuso:/export/client1/projects/P1999-FSDC/ProjectMgmt/Requirements/CES Web/Issue 2.7# ls -lap
total 47256
drwxrwsr-x  2 user1 12258    4096 2010-09-20 15:00 ./
drwxrwsr-x 18 boss1 12258    4096 2010-07-01 12:41 ../
-rwxrw-r--  1 user1 12258 48327168 2010-09-13 17:35 P1999-ces-rs04-issue2.7.doc
fuso:/export/client1/projects/P1999-FSDC/ProjectMgmt/Requirements/CES Web/Issue 2.7# lsof | grep P1999-ces-rs04-issue2.7.doc
fuso:/export/client1/projects/P1999-FSDC/ProjectMgmt/Requirements/CES Web/Issue 2.7# uname -a
Linux fuso 2.6.26-2-686 #1 SMP Sun Jun 21 04:57:38 UTC 2009 i686 GNU/Linux
fuso:/export/client1/projects/P1999-FSDC/ProjectMgmt/Requirements/CES Web/Issue 2.7#

any idea please in how to reset the Samba file locking mechanism ?

Thanks.

prayag_pjs 09-20-2010 01:38 AM

How is samba configured is it mounting the windows drive on linux ...

You try restarting the samba service...

You are using fedora or ubuntu or any other distribution...??

albertwt 09-20-2010 01:45 AM

thanks for your quick reply prayag,

this is SAMBA on Debian 5 32 bit OS, it is mounted as shared network drive on Windows XP

if i do restart the samba service then all of the other user in the company will be affected (that is why idon't go into that option).

prayag_pjs 09-20-2010 01:55 AM

Code:

sudo /etc/init.d/samba reload

or

sudo smbd reload

it will reload smb service without affecting connected users

prayag_pjs 09-20-2010 01:56 AM

http://www.samba.org/samba/docs/man/...n/locking.html

this link will be help full to you

albertwt 11-04-2010 08:21 AM

thanks man for the help in this problem.


All times are GMT -5. The time now is 07:02 AM.