John Plocher wrote:
> So, I tried this on my mac.
> 
> plocher at wp668.local> mv Music MMusic
> mv: rename Music to MMusic: Permission denied
> 
> in Finder, I get a popup that says
>   "Music" can't be modified or deleted because it is required by Mac OS X

Interesting.  But maybe not as bulletproof as you think:

solaris10%  cd /net/macos-box/Users/hugh
solaris10%  mv Music M
solaris10%

Oops...

> The system protects itself such that its internal assumptions
> (that there exists a directory called Music) aren't violated
> by normal user actions.  It doesn't /allow/ itself to be put into
> an inconsistent state.

I must say that I thought I was able to do this in the past, but I may 
have been using a home directory that was copied rather than a fresh 
install, so the ACL may have been missing.  Or this may be a recent fix 
in 10.5, since it looks like the ACL was probably not present in 10.3.

In any case, this suggests one possible fix for Solaris if people care 
about this enough.  Modulo the warning that this prevents changing the 
file in obvious ways, but it's harder to make this foolproof.

Hugh.

PS: looks like they just do this via an ACL.  Although as mentioned 
above, they seem to have a bug whereby the NFS server treats the ACL 
differently:

macos% /bin/ls -eld Music
drwxr-xr-x+ 7 hugh  home  238 Nov  5 22:43 Music
  0: group:everyone deny delete



Reply via email to