How to Fix the Padlock Icon Locking Folders in Ubuntu Files

Opening your Home folder or copied project directory in Ubuntu’s Files manager only to notice small grey padlock badges stamped across folder icons — preventing you from saving changes, pasting new photos, or renaming files — means your everyday user account lacks write ownership over those folders.

Depending on whether the locked folder lives inside your personal Home folder or sits on a shared Windows USB drive, restoring normal access takes under a minute without risking system files.

Check Who Owns the Folder in Properties

Padlocks commonly show up inside your Home folder if you previously unpacked an archive using sudo, copied backups from another Linux account, or created a folder as root by mistake.

  1. Right-click the padlocked folder inside Ubuntu Files and choose Properties.
  2. Click the Permissions section (click Change Permissions or expand Permissions depending on your Ubuntu version).
  3. Look closely at the Owner field:
    • If it already shows Me (your own username) yet Access says Read-only or List files only, change Access to Create and delete files cleanly right inside that window.
    • If it says Owner: root (or another username), you must reclaim ownership safely via Terminal below.

Reclaim Ownership Safely Only on Personal Folders Inside Home

Before changing ownership, check carefully where the folder lives. Never unlock or change ownership on Ubuntu system directories such as /etc, /usr, /var, or /bin — those carry padlocks intentionally to protect Ubuntu from accidental deletion.

  1. Verify the locked folder is genuinely your own personal folder inside /home/yourname/ (such as Documents, Pictures, or Downloads) or a personal backup directory.
  2. Right-click inside the parent folder holding the locked folder and click Open in Terminal.
  3. Run sudo chown -R $USER:$USER "./YourFolderName" (replacing YourFolderName carefully with the exact folder name — press Tab after the first few letters to auto-complete safely).
  4. Type your login password and press Enter. Refresh Ubuntu Files (F5) and the padlock vanishes cleanly.

If the Padlock Sits on a Shared USB Drive or Windows Partition

When padlocks lock folders on an external NTFS hard drive or dual-boot Windows drive rather than your Home folder, Linux permission commands will not unlock them because Windows Fast Startup left an active hibernation lock on the partition. Boot back into Windows briefly, click Restart (not Shut Down) from the Windows Start menu, and return to Ubuntu — or click Repair Filesystem safely inside Ubuntu’s Disks app after unmounting the partition.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.