Say, there is a directory ~/docs with owner boo and group boo and permissions rwxr-x---. Assume there are important files apple.txt and orange.txt in docs which user boo wants to protect from himself (from accidental deletion, e.g. rm -rf /home/boo/*), but it's not an option to change permissions of docs to r-xr-x--- or move the files. What possible solutions are there?
Normal users can't do chattr +i apple.txt orange.txt (and this is Linux-only anyway).
So the only option I can conceive of would be to first chmod 550 apple.txt orange.txt and then hardlink ln ~/docs/apple.txt ~/docs/orange.txt ~/locked/ the files to a directory ~/locked/ and chmod 550 /home/boo/locked/. Is this right? Or is there a simpler way?