How to lock files in macOS Big Sur’s Finder

| |

File locking has an extended custom in computing: you or independently working software program desires to ensure that a file isn’t modified or deleted when it’s wanted or in use. As a result of macOS is Unix primarily based, it presents file-level permissions flags that management how a file may be manipulated and by whom.

However macOS has lengthy had a separate approach to lock a file from the Finder that additionally prevents it from being modified, deleted, or rename from the Terminal or different apps. Lock, unlock, and standing instructions are additionally out there by way of the command line in Terminal.

(Observe that Finder-oriented locking is solely completely different from setting a file to read-only permission both within the Finder or by way of the Terminal, which includes altering Unix permissions. I like to recommend not utilizing read-only standing for recordsdata and folder you’re employed with within the Finder and by way of apps, because the Finder doesn’t honor these permissions for recordsdata which are assigned to you in macOS by way of Unix permissions, which usually contains every thing in your house listing.)

Lock and unlock by way of the Finder in macOS Massive Sur

Turning the lock on and off within the Finder is extremely easy. Choose one file or folder and select File > Get Data; or choose a number of recordsdata or folders and maintain down Choice whereas selecting File > Present Inpector—the Choice key opens a single Get Data window for the a number of objects known as A number of Objects Data. A Locked checkbox may be chosen or deselected. It reveals a – (sprint) if the objects chosen are in a combined state of being locked and unlocked; clicking will lock all the recordsdata.

mac911 lock no icon bigsur IDG

macOS used to indicate an overlaid lock icon as at left in Mojave; in Massive Sur, at proper, it not offers this indicator within the Finder.

Previous to Massive Sur, locked recordsdata would have a lock picture overlaid on its icon within the Finder. Massive Sur solely reveals that lock overlay within the Get Data dialog field.

mac911 locked file remove warning IDG

Massive Sur prompts you to verify eradicating a locked file.

As soon as the file is locked, it may be moved round within the Finder, however not renamed or modified by way of apps. It may be deleted, however provided that you affirm the operation.

Apple’s apps and people of third events that assist the conference additionally allow you to lock and unlock paperwork from the titlebar: click on the downward-pointing arrow to the best of the file identify after which choose or deselect the Locked checkbox.

mac911 pages lock titlebar IDG

Pages and different apps allow you to lock and unlock paperwork from the titlebar.

Utilizing the Terminal

If you happen to wish to poke at macOS’s internals by way of Terminal, launch Functions > Utilities > Terminal and navigate to a folder that you just’ve locked an merchandise in. In case your file is on the Desktop, you may kind this to get there:

Previous

Covaxin Phase 1 Trial Clears Lancet Review, Phase 3 Trial Ongoing

Everything You Need To Know

Next

Leave a Comment