In article <
vilain-01473E....@news.individual.net>,
Michael Vilain <vil...@NOspamcop.net> wrote:
> In article <
jnmsf9-...@bague.nelefa.org>,
> John Dow <j...@nelefa.org.invalid> wrote:
>
> > Gerard H. Pille the Monkey was never naughty:
> > > Barry Margolin wrote:
> > >>
> > >> If root can't read the files, it probably won't be able to chmod them,
> > >> either.
> > >>
> > >
> > > Remind me, pray, how does one prevent root from reading a file?
> >
> > rm -f $filename :)
> >
> > J
>
> On Linux and Solaris, you can't AFAIK. Unless the file is encrypted,
> root can read it. Some other OSs implement ACLs that might prevent root
> from having access to a file, but that would break a lot of stuff. The
> basic assumption in UNIX is that root has unencumbered access to all
> files. The file permissions check in the OS is bypassed if the process'
> ID is 0 (root).
>
> So, encrypt the file and root will still be able to read it. But they
> won't be able to do much with it.
The OP said that he couldn't tar a directory because of permissions
problems, even as root. Encryption is irrelevant. rm would certainly
prevent you from tarring the file, although it won't cause a permissions
error.
My guess is he's on a flavor of Unix with security extensions that
override root's super powers.