Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Oct 2000 21:29:25 -0900 (AKST)
From:      groggy@iname.com
To:        "freebsd-questions" <questions@freebsd.org>
Subject:   no respect for W perms?
Message-ID:  <200010310629.VAA82567@groggy.anc.ptialaska.net>

next in thread | raw e-mail | index | archive | help
i just was writing a C program using
fopen and fgetc and fputc and rename.

with a file with perms such as:

=> rw r r  root    user    FILENAME

"user" could read FILENAME (of course)
and then write it to a temp file, and
the rename() it to FILENAME thereby
defeating the fact "user" had no
write permission.  and no, it
is not a suid program.

is something wrong?  3.5.1-RELEASE.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010310629.VAA82567>