↑↓ to navigate ↵ to open Esc to close Search by Algolia

You are reading the documentation of FileRun 2026.4.0, which is not released yet. It is subject to change, so do not use it for planning. Go to the documentation of FileRun 2026.3.0

Locking files

A lock reserves a file for the user who locked it, so that nobody else changes it in the meantime. This page describes how you lock and unlock a file, what a lock prevents, who can lift a lock, and how a locked file is shown.

Locking a file

  1. Right-click the file.
  2. Choose Organize → Lock.

FileRun shows "Successfully locked the file "%1".". The lock is in your name.

  • Only files can be locked, not folders.
  • Lock works on one file at a time.
  • Lock is not offered for a file that is already locked.
  • A lock does not expire. It stays until somebody unlocks the file.

Unlocking a file

  1. Right-click the locked file.
  2. Choose Organize → Unlock.

FileRun shows "Successfully unlocked the file "%1".". See Who can unlock a file.

What a lock prevents

While a file is locked, the other users cannot:

  • edit it in an editor, or upload a file of the same name over it
  • replace it with a file of the same name, when they copy or move a file, or extract an archive
  • rename it or move it
  • delete it, to the trash or permanently
  • restore or delete its previous versions
  • change its tags, its rating and its metadata
  • write comments on it, or delete its comments

FileRun refuses these actions with "The file "%1" is currently locked by %2!", with the name of the user who holds the lock. Most of the commands are not offered at all.

The other users are everybody but the user who holds the lock: the owner of the file and the administrators too. They can unlock the file first, and then change it.

The user who holds the lock works with the file as usual.

What a lock does not prevent

While a file is locked, the other users can still:

  • open, preview and download it
  • copy it. The copy is not locked.
  • share it with other users, and create web links to it, but not a web link that allows editing
  • star it, and add it to a collection
  • read its comments and its metadata

A lock does not protect the folders above the file. A user who can move or delete one of these folders moves or deletes the locked file with it. The file keeps its lock in the new place, and in the trash.

Who can unlock a file

These users can unlock a file:

  • the user who locked it
  • the owner of the file. In a folder that another user shared with you, the owner is that user. In a shared drive, no member is the owner of the files.
  • an administrator who can open the file

The right-click menu offers Unlock only to these users. In a shared drive, a Manager cannot unlock the file of another member either. See Comments, versions and locks.

When the account that holds the lock is deleted, FileRun lifts the lock. The lock stays when its holder only loses access to the file, for example when the holder is removed from a shared drive.

How a locked file is shown

A locked file has a lock icon in the file list. Hold the mouse over the icon to read "This file is locked by %1.", with the name of the user who holds the lock.

The Details panel of the file shows the same name, under Locked by. In the list layout, Choose details can add the column Locked by. See The file manager.

Through a web link, FileRun does not show who holds the lock. The visitors see "This file is locked by another user.", and "another user" under Locked by. The refusals of the changes also say "another user" instead of the name.

You see the lock only when you can download the file. For example, a user whose role in a shared folder is Uploader does not see it.

Locks taken through a web link

A web link that allows editing also allows locking. When a person who is not signed in locks a file through such a link, the lock is in the name of the visitor account, Visitor. See The visitor account and Sharing with links.

Every user who can lock the file can unlock a lock of the visitor account.

Locks taken by other programs

When a WebDAV client locks a file, the lock is the same as a lock taken in the file manager, in the name of the account that the client signed in with. The file manager shows it, and the rules of this page apply. The lock stays until the client unlocks the file, or until somebody unlocks it in the file manager. When a program closed without unlocking a file, unlock it in the file manager. See WebDAV.

Some online office editors keep a lock of their own on a document while it is open in them. The file manager does not show that lock, and it does not stop the actions of this page.

Programs can also lock and unlock files through the API. See API: Locking files.

What locking needs

There is no separate permission for locking. Your account needs at least one of these permissions:

  • User can edit existing files
  • User can rename and move files and folders
  • User can delete files

Without them, FileRun shows "Locking requires permission to edit, rename, move or delete files!". See Locking files.

  • On a file of another account, the owner of the file must also have the same permission. See Permissions and shared files.
  • In a folder that another user shared with you, your role must be Editor, Contributor or Content manager. In a shared drive, Manager also allows it. Otherwise, FileRun shows "The permissions of the share do not allow you to make changes!". See Sharing files and folders.
  • In a read-only drive, nobody can lock a file. See Read-only drives.
  • Files in the trash cannot be locked: "Files inside the trash folder cannot be locked!".
  • Unlocking needs the same permissions and roles as locking.