Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Unlocking files using Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Unlocking files using Terminal
Authored by: vxbush on May 29, '01 05:33:04PM
I don't mind unlocking files on an OS 9 volume using "Get Info", but I find it really aggrivating to do this for a folder with more than five files. I frequently have thirty or more files that that are all locked, and it gets really annoying.


I used Terminal and did an ls -la, and saw the following:



-rwxrwxrwx 1 vbush notes - 1082304 May 1 12:58 file1*
-rwxrwxrwx 1 vbush notes uchg 105698 Apr 19 14:17 file2*

The first file is not locked; the second file is. Notice the "uchg" entry. How can I go through and remove this from all the files? I can't tell what kind of attribute this is.

--vb

[ Reply to This | # ]
Re: Unlocking files using Terminal
Authored by: blb on May 29, '01 11:41:38PM
uchg is the 'user immutable' flag (ie, you can't delete it, as you've found). I know of two ways to clear this flag, either use (from a Terminal) the chflags command (see man chflags for info); the other, grab ChangeFileFolderProps to do this with a GUI.

[ Reply to This | # ]
Unlocking files using Terminal
Authored by: ankh on Dec 09, '02 08:53:01PM

I noticed I can select All of a group of files, get information, and it'll let you unlock everything selected. Had no idea it would do that.

Hope it does it tomorrow. Never can seem to predict what X will do, yet.



[ Reply to This | # ]