can root somehow create a immutable file in a non-uid-0 hierarchy?
Anthony Messina
amessina at messinet.com
Sat Apr 14 05:02:40 UTC 2007
Skunk Worx wrote:
> fc6 user...basic fs question.
>
> Suppose I am root/UID 0. Is there a way to create a file in someone
> else's (non-uid-0) FS hierarchy and have it be immutable? No rename, etc.?
>
> I'm trying to do a hot-plug of disk keys and I would like to put some of
> my own bytes somewhere so I know whether or not I've seen the disk key
> before.
>
> Some years ago I used SGI machines and they had a file system with a
> volume header I could use. I don't think extX has such a capability.
>
> I'm pretty sure the answer is no, but I figured I'd ask anyway.
>
> Thanks,
> John
>
not sure if this is what you're looking for, but how about chattr?
man chattr:
" A file with the ‘i’ attribute cannot be modified: it cannot be deleted
or renamed, no link can be created to this file and no data can be
written to the file. Only the superuser or a process possessing the
CAP_LINUX_IMMUTABLE capability can set or clear this attribute."
--
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070414/2007c6fb/attachment-0001.sig>
More information about the fedora-list
mailing list