These aren't the permissions you're looking for
I've also been going through the files I transferred across from my
Linux box and correcting the permissions. Because I did the transfer
via a USB drive, basically everything ended up with
mode -rwxrwxrwx
, so I needed to get rid of the execute
bit on regular files that weren't scripts, and to get rid of write
permission on any RCS/*,v
files and their corresponding
workfiles.
This isn't that exciting, except that it revealed a feature of the
filesystem that I hadn't realizedthere's an extra layer
of permissioning on top of the normal Unix modes. Even
as root
(which I enabled via
Applications, Utilities, NetInfo Manager, Security, Enable Root
User) I'd get:
% chmod -x file chmod: file: operation not permittedThis is because the file has been locked, which is visible (and alterable) in the Finder file Info window. The
chflags uchg file
and chflags
nouchg file
commands lock and unlock files from the
command line respectively. I've still no idea why some (and there
seemed no pattern as to which) of the transferred files ended up
locked but most didn't.
0 Comments:
Post a Comment
<< Home