Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

Thanx

Erez

share|improve this question
1  
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
add comment

1 Answer

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 

Or

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

Your Answer

 
discard

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.