Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a file server running ubuntu server. Sometime, when one of the users is using a file and closing it, the server still shows that the file is locked for editing.

How can I release that lock? Is there a fix for this problem?

The ubuntu server is 10.xx.



share|improve this question
What file type is it? A document? A picture? Which program is used to open the file? – prophecy201 Jun 19 '13 at 8:09
And what protocol do you use to access the files? Samba/SMB/CIFS or NFS, or ... – gertvdijk Jun 19 '13 at 8:40

To unlock a folder using your terminal, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to the locked folder, or file, and run the command(s) below:

sudo chown -R username:enter_username folder_name 


sudo chown -R username:enter_username file_name.ext
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.