Use this to find all locked files. This example searches the entire HD but you can navigate to a path if necessary.

find / -flags uchg

Use this to find and unlock all locked files.

find / -flags uchg -exec chflags nouchg {} \;

 

Other useful chflags commands:

sudo chflags uchg /path/to/file

sudo chflags nouchg /path/to/file

Keith Mitnick

As Senior System Engineer & COO at HCS, Keith wears many hats. He is responsible for a myriad of duties at HCS. Keith is always willing to do the job at hand and is never afraid to get his hands dirty.

Speak with an Apple Certified expert today

We’d love to discuss your business challenges, even if you’re not sure what your next step is. No pitch, no strings attached.

Let's Talk