Is not 'delete' in a way  akin to a write operation ? Is there in a man page
... that speaks more abt this ?

Devdas Bhagat wrote:

> On Sat, 03 Jun 2000, Mrinal Kalakrishnan wrote:
> > Hi,
> >
> > Ghins Mathai typed:
> > > -rw-r--r--   1 root     root       633514 Jun  3 18:55 space.usage
> > > When I try writing it, I am not allowed (as no 'w' for others)
> > > But when I try removing it I can. Why ???
> >
> > I think it has something to do with the fact that it lies in your home
> > directory - which is owned by you. Thus, you can delete it. But you
>
> This may be true, he might be able to delete/move the file because he
> has write permissions to the containing directory.
>
> > can't change it's mode or write to it because it would be a major
> > security risk. Imagine if you could make the file executable and
> >setuid (its still owned by root) and then write to it. :-)
>
> Question of security risk :He doesn't have permission to do anything to
> the file except read it. Therefore he cannot write to it.
>
> Devdas Bhagat
> --
> "What the scientists have in their briefcases is terrifying."
> -- Nikita Khrushchev
>
> -----------------------------------------------------------------------
> For information on this and other Linux India mailing lists check out
> http://lists.linux-india.org/

--
+--------------------------------------------------------+
"A problem, at its core, is really just an opportunity to
learn and explore."
--Stephen Coleman



-----------------------------------------------------------------------
The LIH mailing list archives are available at:
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help

Reply via email to