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 #73239 is a reply to message #73164] Fri, 29 October 2010 07:08 Go to previous message
Truong Le is currently offline  Truong Le
Messages: 42
Registered: September 2010
Member
On Oct 29, 4:23 am, Carsten Lechte <c...@toppoint.de> wrote:
> On 28/10/10 22:53, Truong Le wrote:
>
>> Is there anyway we can set full restriction such that NO ONE is allow
>> to modify it?
>
> If you want to prevent anyone from restoring write permissions on the
> file and then modifying it, you have to change the owner of the file
> and then give only read permission to other users. As far as I know,
> this owner change can only be done by the super user/system
> administrator. It is how all the system files are protected against
> modification by regular users. If you also want to prevent deletion of
> the file, its containing directory must also be owned by a different user.
>
> chl

How can I set that using the FILE_CHMODE command in IDL?
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.

Thanks,
[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: Sat Oct 11 03:52:56 PDT 2025

Total time taken to generate the page: 1.83911 seconds