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 #73236 is a reply to message #73164] Fri, 29 October 2010 09:01 Go to previous messageGo to previous message
Carsten Lechte is currently offline  Carsten Lechte
Messages: 124
Registered: August 2006
Senior Member
On 29/10/10 16:08, Truong Le wrote:
> How can I set that using the FILE_CHMODE command in IDL?

I do not think that changing the owner of a file can be done with IDL,
since you need to be a privileged user to do it, and you usually do
not want to be a privileged user while running IDL.

On unix, one might try SPAWN-ing a command line using sudo (like 'sudo
chown newuser file') from the IDL session to temporarily get the
required privileges, but I have not tried it and I am not saying that
it is a good idea.

Depending on your workflows, you might want to do the file-protection
stuff outside of IDL, before you package the data to the "hostile" users.


chl
[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: Fri Oct 10 23:16:11 PDT 2025

Total time taken to generate the page: 1.60151 seconds