Whoops!

[EMAIL PROTECTED] wrote:
>looking for an example of block argument for open/allow,
>how to specify rwxr-xr-x ?
>looks like under unix (hpux & linusx) you can only set the owner's
>permission.
>cannot seem to reach group and others.

I wrote:
>The permissions passed to open have nothing to do with
>unix permissions at all - they only apply to internal
>REBOL restrictions on the use of the port. REBOL tries
>to open the file with the access methods you specify.
>If you request a form of access to the file that its
>unix permissions don't allow, the open will fail.
>
>There is no way to _set_ unix permissions from within
>REBOL whatsoever. That functionality will probably be
>accessable from REBOL/Command, when it comes out.

I got /allow and /mode mixed up! Whoops!

Apparently /allow _does_ set unix owner permissions on
files, specifically read, write and execute.

You have to make sure that the permissions you set allow
the mode you open the port in or you generate an error,
but otherwise it works. The read and execute permissions
don't do anything on non-unix.

I can't figure out how to set group and all permissions,
and suspect that you can't in /Core.

Oh well, that'll teach me to open my big mouth :(
Brian Hawley

Reply via email to