bug-coreutils
[Top][All Lists]
Advanced

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

Re: litte understanding problem with test


From: Bob Proulx
Subject: Re: litte understanding problem with test
Date: Fri, 18 May 2007 09:29:10 -0600
User-agent: Mutt/1.5.9i

address@hidden wrote:
> Thanks for your fast answer :)
> I tried it as user and it works, seems to be a root issue

"root", as in the superuser?  The user that has write permission for
all files on the system?

> address@hidden:/tmp$ echo foo>file && chmod 444 file && test ! -w file && 
> echo "no write permission"
> no write permission
> address@hidden:/tmp# echo foo>file && chmod 444 file && test ! -w file && 
> echo "no write permission"
> address@hidden:/tmp#

Correct.  The root user has "superuser" permissions and can write to
all files on the system.  (Let's not talk about NFS's root squash nor
security enhanced linux nor any of the others. :-)  Try it.  You will
find that as root you can actually write to those files.

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]