Re: Prevent file access.
Re: Prevent file access.
- Subject: Re: Prevent file access.
- From: Brian Bergstrand <email@hidden>
- Date: Tue, 6 Jul 2004 15:24:09 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Jul 6, 2004, at 2:33 PM, Matt Jaffa wrote:
>
Hi,
>
>
Is there a way to prevent a file from being moved anywhere, so that it
>
stays in the same directory that I installed it.
>
And also prevent any other application from opening it up and viewing
>
its contents?
>
or from deleting it or even moving it to trash, like above prevent
>
from moving it to another folder
>
The only thing you can do (and this is trivial to get around) is to
install the file as root:wheel with r-------- perms (octal 400). The
parent directory will need to be owned by root:wheel and have perms of
r-xr-x--- (octal 550) to prevent file deletion. Of course any admin
user can sudo to root and remove this file, and the Panther Finder is
even so nice as to authenticate you on the spot when trying to operate
on such a file.
HTH.
>
Matt
>
Brian Bergstrand <
http://www.bergstrand.org/brian/>, AIM: triryche206
PGP Key: <
http://www.bergstrand.org/brian/misc/public_key.txt>
I'm proud to pay taxes in the United States; the only thing is, I could
be just as proud for half the money. - Arthur Godfrey
As of 02:09:38 PM, iTunes is playing "It's So Easy" from "Appetite For
Destruction" by "Guns N' Roses"
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1
iQA/AwUBQOr8ZnnR2Fu2x7aiEQL9XwCgpSkd9Oe5EvWL5UQtrQcOeUZZ9aMAn01L
zEaLecLvTQvcchZETTvn8vtt
=q7nF
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.