comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » create file that is readable only
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: create file that is readable only [message #73238 is a reply to message #73164] Fri, 29 October 2010 08:16 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Oct 29, 12:08 pm, Truong Le <truong...@gmail.com> wrote:
> I have set
>
> FILE_CHMOD, filename, U_WRITE=0, G_WRITE=0,O_WRITE=0
>
> and I thought this should only create a readable file only. However,
> when I gave this file to someone to test it the person was able to
> modify the file without any problem. Any help is appreciated.

What do you mean by "gave"? If that someone is making a copy of the
file, that someone will be the owner of the copy, and thus able to do
anything to it. Only users that do not own a file can be prevented
from altering it. If the file is set without write permission to the
owner, all that means is that applications run by the owner can choose
not to write to it based on the lack of permission, but this is not
enforceable.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Orbit Calculation
Next Topic: Sanity Check

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Nov 30 08:06:20 PST 2025

Total time taken to generate the page: 0.48311 seconds