|
|
re: this can be done form the Terminal
that's not actually the case with locked files.
re: this can be done form the Terminal
It is true that even as root via the Terminal you cannot use the usual UNIX "rm" command to delete locked files. This is disturbing (especially unsettling to one who has done Mac troubleshooting for years and is well acquainted with Murphy's Law--if something can go wrong, it will). Suppose that by whatever cause, malicious or otherwise, you find your disks filled with hundreds or thousands of locked files. There should be some backdoor method (certainly, I agree, not one to be invoked casually) to unlock them in batch fashion (apart from rebooting into Mac OS 9.1; perhaps someday that won't be an option).
re: this can be done form the Terminal
Correction: That should have been "/Developer/Tools/SetFile -a l <names of files>" and
re: this can be done form the Terminal
Here's a simple bash script to run in a Terminal window
Usage (code saved as an excutable file recursiveUnlock.sh):
unlocks all files in dir, including those in dir's sub-directories---
re: this can be done form the Terminal
$ find *the_root_dir* -type d -exec /Developer/Tools/SetFile -a l {} \;
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.07 seconds |
|