LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-26-2013, 11:23 AM   #1
aaa choo
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Rep: Reputation: Disabled
Microsoft Office ~$ lock files on Ubuntu webdav


Hi All,

This is my first post. I've got a Ubuntu 12.04 server hosted on Amazon EC2. This server is acting as a simple file server. I have set up Apache to serve out WebDAV folders using Apache's davfs module. The WebDAV folder is secured over SSL port 443. The authentication method is digest. I set up everything by the book and this is a standard deployment of webdav.

The problem is that now I have users connecting to this drive who are running Windows and Microsoft Office. Usually Office programs like Word and Excel when opened create a temporary lock file in the same directory. For example if Test.docx is opened, then a file called ~$Test.docx is created. Now when the original file is closed in Office, this temporary file is automatically removed also. However, with us, these files remain behind for some reason leading to confusion and clutter.

Does anybody know what I can do to solve this problem please?

Thanks very much!
 
Old 04-26-2013, 12:25 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Ran into this same issue with open office, only way I found around it was to disable that feature inside the application.
 
Old 04-26-2013, 05:34 PM   #3
aaa choo
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks for your reply Kustom42. I did some googling on this but it seems that in Microsoft Office applications, you can't turn the temporary files off because they contain some edits information too. The only solution I can think of is to do a scheduled cron job that deletes any files starting with ~$. But ideally I want to find out why this is happening. Is it just the case that MS Office isn't 100% compatible with WebDAV?
 
Old 04-26-2013, 05:46 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Quote:
Originally Posted by aaa choo View Post
Thanks for your reply Kustom42. I did some googling on this but it seems that in Microsoft Office applications, you can't turn the temporary files off because they contain some edits information too. The only solution I can think of is to do a scheduled cron job that deletes any files starting with ~$. But ideally I want to find out why this is happening. Is it just the case that MS Office isn't 100% compatible with WebDAV?
WebDAV is something Microsoft had to do, I've never really seen much effort from thier part as far as support. I used to run into WebDAV issues atleast once a week when working at a hosting provider, especially for the replacement of frontpage exts.


Anyways, if you are going to go the cron route make sure to do an fuser or lsof or similar to make sure there is no existing file lock on the file that way you won't get your script error'ing out if someone is using office and working on that file
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
installation of microsoft office in ubuntu.......... Satyajit Patra Linux - Newbie 2 03-30-2012 12:50 AM
LXer: How Does OpenOffice 3.0 Beta Handle Microsoft Office Files? LXer Syndicated Linux News 0 07-16-2008 03:30 PM
WebDAV at my office, please advise prophoto Linux - Server 0 06-21-2007 07:48 PM
LXer: Microsoft Office lock-in and the deal with Novell LXer Syndicated Linux News 2 12-09-2006 06:45 AM
I can't open any files. i do not have Microsoft Office Standard lissie82 Linux - Software 3 10-03-2006 04:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:33 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration