permissions reminder?
[1/6] from: rebpost:linuxfreemail at: 14-May-2002 9:23
Hey guys,
A long time ago, in a galaxy far, far away, someone posted
an example of how to set file permissions with rebol, as in:
chmod 755 file.r
Could someone please help me locate the old post, or just
tell me how it's done?
Thanks,
-tom
[2/6] from: jason:cunliffe:verizon at: 14-May-2002 13:44
Hi Tom
Use and security needs define the permission you need to set.
For making a rebol script executable on a Unix/Linux system, yes it is very
common to use
chmod 755 somescript.r
As well as the script permsissions itself, you may need to pay attention to the
permissions for teh folder the script lives. Managing the owner and group a file
or folder is essential too for many uses.
It is very worth while to study up on, and experiment with permission settings.
They are crucial to make sure FTP software will work properly and Apache in
cgi-bin, or if you when other programs need to use your rebol scripts. Also when
reading and writing from data files which rebol is creating or sharing. In rebol
there is no hard line between data and programs. It is a continuum so the use is
imporant to define which permissions to assign for rebol scripts.
There are many handy tutorials in books and online.
Here's a couple which may help you:
chmod tutorial
http://bruce-hamilton.com/tutorials/chmod.shtml
An Introduction to Unix Permissions
http://www.onlamp.com/pub/a/bsd/2000/09/06/FreeBSD_Basics.html
CHMOD 2.0 by CodeBrain.com is a utility that aids in selecting and translating
UNIX CHMOD file and directory permission settings.
http://www.codelifter.com/chmod2index.html
Using chmod
http://jgo.local.net/LinuxGuide/linux-chmod.html
chmod Tutorial
http://catcode.com/teachmod/
hth
./Jason
______________________________________________
Jason Cunliffe [NOMADICS: Director art+design]
Tel/fax: +1 718 422-1078 [jasonic--nomadics--org]
N 43:00.000' W 074:31.875' ALT:1144 ft
84 Henry Street #3C Brooklyn NY 11201 USA
[3/6] from: micael:gullmes:telenor:se at: 14-May-2002 19:54
Hi,
see http://www.rebol.com/docs/core25.html
Here are a few starters (for Unix, the applicable modes may differ on
different OS's)
;---Check what modes you can set:
>> probe get-modes %test.file 'file-modes
[status-change-date modification-date access-date owner-name group-name
owner-id group-id owner-read owner-write owner-execute group-read
group-write group-execute world-read world-write world-execute set-user-id
set-group-id full-path]
;---Check what modes are set for a file:
>> probe get-modes %test.file [ owner-read owner-write owner-execute
group-read group-write group-execute world-read world-write world-execute ]
[owner-read: true owner-write: true owner-execute: false group-read: true
group-write: false group-execute: false world-read: false world-write: false
world-execute: false]
;---Set a new mode for a file:
set-modes %test.file [ owner-execute: true ]
Brgds /Micael
-----Ursprungligt meddelande-----
Fran: Tom Foster [mailto:[rebpost--linuxfreemail--com]]
Skickat: den 14 maj 2002 15:24
Till: [rebol-list--rebol--com]
Amne: [REBOL] permissions reminder?
Hey guys,
A long time ago, in a galaxy far, far away, someone posted
an example of how to set file permissions with rebol, as in:
chmod 755 file.r
Could someone please help me locate the old post, or just
tell me how it's done?
Thanks,
-tom
[4/6] from: greggirwin:mindspring at: 14-May-2002 10:49
Hi Tom,
<< A long time ago, in a galaxy far, far away, someone posted
an example of how to set file permissions with rebol, as in:
chmod 755 file.r
Could someone please help me locate the old post, or just
tell me how it's done? >>
SET-MODES is probably what you're after.
--Gregg
[5/6] from: joel:neely:fedex at: 14-May-2002 13:49
Hi, Tom,
Given a file something like the following (for example):
8<----------beginning of demo.r----------
!#/usr/bin/rebol -sq
REBOL []
print {Content-type: text/html
<html>
<head><title>Demo!</title></head>
<body bgcolor="#ffccff">
<h1>Demo!</h1>
<p>This is... (are you ready for it?)... a demo!</p>
</body>
</html>
}
8<-------------end of demo.r-------------
(where the path to your REBOL interpreter is sustituted
appropriately, of course), you can then issue the shell
command
chmod 755 demo.r
after which
demo.r
is a legitimate command-line command. (It works for other
things than CGI as well...)
Hope this helps!
-jn-
Tom Foster wrote:
[6/6] from: alanwall:sonic at: 14-May-2002 20:13
Hello Tom
On 14-May-02, Tom Foster wrote:
> Hey guys,
>
> A long time ago, in a galaxy far, far away, someone posted
> an example of how to set file permissions with rebol, as in:
>
> chmod 755 file.r
>
> Could someone please help me locate the old post, or just
> tell me how it's done?
>
go here:
http://www.escribe.com/internet/rebol/search.html?query=permissions
Regards
--
Figures won't lie, but liars will figure.
-- Charles H Grosvenor
sent via Yam ver2.31 on AmigaForever verV
Be a Rebel get Rebol@ rebol.com
UIN#=9391028