On Sun, Jun 04, 2000 at 06:58:29PM +0530, Ghins Mathai wrote:
> Is not 'delete' in a way  akin to a write operation ? Is there in a man page
> ... that speaks more abt this ?

When you 'delete' a file, you basically modify the directory (which is
a file in UNIX) containing the file. Since you are the owner of the
directory, you can do that.

When you 'write' to the file, you modify the file itself, which you
don't own.

Note that there could be a hardlink to the file from a different directory,
in which case, deleting the file from the directory, doesn't really
'delete' the file. This is the expected behavior.

man pages: unlink(2), write(2)

        -Arun


-----------------------------------------------------------------------
Check out the 'What to do before posting to the list' site
for a list of things to try before posting.  The site is
at http://botsie.tripod.com/beforeposting/

Reply via email to