Files can be locked on OS X by going to the "Get Info" panel for the specific file and clicking the lock button.
I would need to remove locks from a shell script. What unix command can do that?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityIf you've got xcode installed, /Developer/Tools/SetFile
. To unlock:
% SetFile -a l <path>
To lock:
% SetFile -a L <path>
To query, you can use /Developer/Tools/GetFileInfo