10.4: A solution for server volumes locked by 10.4.6

Apr 18, '06 06:04:00AM

Contributed by: Anonymous

Tiger only hintSoon after installing the OS X 10.4.6 update, some of us discovered that some of our server volumes were suddenly locked. And some of the folders in these volumes were write locked for no apparent reason.

It didn't take someone too long to come up with a solution -- solutions can be found in Macintouch's Reader Reports, and in this thread on Apple's Discussions boards. However, those are all command line solutions.

As an alternative, here's a little AppleScript that I wrote to make it a little easier for the not-so-techie-geek-types to handle:

set theFolder to ""
set theFolder2 to ""
set theFolder to ¬
 (choose folder with prompt "Select a folder to unlock:")
if theFolder is not "" then
  set theFolder2 to POSIX path of theFolder
  say "Unlocking selected folder."
  do shell script ¬
   "sudo chflags -R nouchg '" & theFolder2 ¬
   & "'" with administrator privileges
end if
[robg adds: I haven't tested this one.]

Comments (1)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20060412174618798