Re: can root somehow create a immutable file in a non-uid-0 hierarchy?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux