Benches macOS

4

Finding Locked Files on your Drives

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

When transferring a large number of files to my Mac from an old hard drive it apparently left several Random files locked on my system. I know how to get rid of them if locked.. but how do I scan my drive to find all of the locked files it left?

Everytime I seem to be encountering one it is crashing my application.

Thanks,

Christopher

4 replies

Sign in or join Beachball Help to reply.

  1. 0

    Niel

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Open the Terminal in the /Applications/Utilities/ folder and run:

    sudo find . -flags uchg

    Provide your administrator password, which won't appear on the screen while it is being typed; the command may take a few minutes. Do not unlock the BootX or boot.efi items.

    (34796)

  2. 0

    crsouser

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Again *I know how to fix it*.. but +I am looking for an easier method of locating the locked files+ than manually scrolling through a couple hundred directories and 40,000 files looking for a little lock on the file.

    If there is even one it seems to be able to crash my programs that I use on the files.

  3. 0

    V.K.

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Niel's method doesn't unlock those files, it only finds them. seems to me that's exactly what you are asking for.

  4. 0

    crsouser

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Sorry.. you are correct.. I misread it as someone stating the Apple knowledge base answer of how to unlock them.

    The method suggested worked (just cd up to a top level directory first".

    sudo find . -flags uch.

    Just so all the info's in one place:

    "I.e." sudo chflags -R nouchg for unlocking them.

    from

    http://support.apple.com/kb/TS1402

    I found the Option button plus empty trash works too for getting locked files out of there sometimes

    As well as Get Info followed by unchecking "Locked".

    Christopher