LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 09-20-2010, 01:08 AM   #1
albertwt
Member
 
Registered: Aug 2010
Posts: 50

Rep: Reputation: 1
Question 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.
 
Old 09-20-2010, 01:38 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,132
Blog Entries: 4

Rep: Reputation: 146Reputation: 146
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...??
 
1 members found this post helpful.
Old 09-20-2010, 01:45 AM   #3
albertwt
Member
 
Registered: Aug 2010
Posts: 50

Original Poster
Rep: Reputation: 1
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).
 
Old 09-20-2010, 01:55 AM   #4
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,132
Blog Entries: 4

Rep: Reputation: 146Reputation: 146
Code:
sudo /etc/init.d/samba reload

or

sudo smbd reload
it will reload smb service without affecting connected users

Last edited by prayag_pjs; 09-20-2010 at 02:03 AM.
 
1 members found this post helpful.
Old 09-20-2010, 01:56 AM   #5
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,132
Blog Entries: 4

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

this link will be help full to you
 
1 members found this post helpful.
Old 11-04-2010, 08:21 AM   #6
albertwt
Member
 
Registered: Aug 2010
Posts: 50

Original Poster
Rep: Reputation: 1
thanks man for the help in this problem.
 
  


Reply

Tags
samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Need to edit last word on each line in file emmalg Linux - General 10 06-01-2010 10:36 AM
How to edit files with xemacs over Samba share? Samba problem? rylan76 Linux - Software 1 11-13-2008 01:00 AM
Thunderbird profile locked without lock file surfer63 Linux - Software 1 11-10-2005 08:30 AM
Why can't i edit a openoffice file over samba share maqish Linux - Software 4 05-18-2004 01:07 PM
Changing Filename on Samba Share from XP InEeDhElPlInUx Linux - Software 17 04-20-2004 08:29 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration