Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

peterkc1

macrumors newbie
Original poster
Jun 29, 2023
3
0
I have a drive with numerous folders & subfolders, each containing numerous files copied from another disk, that i would like to batch unlock (vs tediously unlocking each individual folder).
 

ifrit05

macrumors 6502a
Dec 23, 2013
546
380
Near Detroit, MI. USA
the chflags command is what you're looking for (i.e.):

chflags -R nouchg /ROOT/DIR/ON/VOLUME/WITH/LOCKED/FILES

So if the Volume is named "Data HD" with files and folders in different directories that need to be unlocked, you would type this in Terminal:

chflags -R nouchg "/Volumes/Data HD"
 

peterkc1

macrumors newbie
Original poster
Jun 29, 2023
3
0
All I got was a couple of lines ending with 'Operation not permitted.'
 

peterkc1

macrumors newbie
Original poster
Jun 29, 2023
3
0
I found I could unlock everything by doing Get Info, unlocking at the bottom, and using the little dropdown at the bottom to apply to all enclosed items!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.