[Samba] xls file locked for editing by unknown user
Denis Fateyev
denis at fateyev.com
Tue Jun 29 03:47:37 MDT 2010
Hello Dave,
`lsof | grep "your-file-name"`
If it locked with any of smbd process, try `kill PID`, where `pid` - smbd
pid you've got previously.
---
wbr, Denis.
2010/6/29 Dave Coventry <dgcoventry at gmail.com>
> Hi Moray, thanks for the assistance!
>
> On 29 June 2010 10:41, Moray Henderson (ICT) <Moray.Henderson at ict.om.org>
> wrote:
> > Which version of Samba?
>
> Samba version 3.2.5
>
> > Does smbstatus(1) list the file as being locked? If so, it should give a
> pid you can examine. The fuser(1) and lsof(8) commands can track which
> process has a file open.
>
> No. smbstatus returns "No locked files"
>
> > If rebooting the server does not clear the lock, there's either a lock
> file
> > or a cached lock record somewhere. Try /var/lib/samba/locking.tdb.
> > Although it's binary, you can grep(1) it for the filename, or use
> > tdbdump(8) to display the contents. According to
> >
> http://wiki.samba.org/index.php/Frequently_Asked_Questions#What_are_tdb_files.3F
> ,
> > locking.tdb is not required to persist across restarts. I wouldn't try
> deleting
> > this when Samba is running; even with Samba shut down I would rename it
> > rather than deleting it.
>
> There is no file in /var/lib/samba/ called 'locking.tdb'
> The only files in that directory bearing a date later than 14th Dec
> 2009 are these three:
> passdb.tdb
> registry.tdb
> wins.dat
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>
More information about the samba
mailing list