home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
262.lha
/
ArpDoc_v1.3
/
Protect
< prev
next >
Wrap
Text File
|
1989-07-01
|
4KB
|
133 lines
Protect(V1.3) ARP User's Manual Protect(V1.3)
NAME
Protect - To set file(s) protection status.
SYNOPSIS
Protect File/a Flags ADD SUB ALL/s FILES/s DIRS/s Q=QUIET/s
DESCRIPTION
Protect is used to set the protection level of a file or
files. You may set the protection level for multiple files
or directories at a time using wildcards. The flags that you
may set are:
h - hidden file is protected from listing (not supported)
a - archive file has been archived (set by backup programs)
p - pure file may be made resident without fear
s - script file is a script (supported by some shells)
r - read file is readable (supported by some commands)
w - write file is writable (supported by some commands)
e - execute file is executable (supported by some shells)
d - delete file is deleted (system supported)
Setting or adding a flag allows the associated action.
Clearing or subtracting the flag disallows that action. You
can specify a completely new set of flags for a file by
simply listing the flags you want to be turned on for that
file (or files). If you omit a flag, that flag will be
cleared. Protect with no flags disallows all protections
for the file(s) in question.
You can also add or subtract flags to the current set using
the ADD and SUB keywords (see below) or by preceding the
flags with a '+' character or a '-' character, respectively.
To view the protection bits for a specific filename, you use
the List command.
OPTIONS
ADD The flags given are to be added to the current set for
the file(s) in question. Other than adding these flags,
the original protection bits of the file(s) will be
left unchanged. Another way to obtain this behavior is
to use a '+' character as the first character of the
flags you wish to add.
SUB The flags given are to be removed from the current set
for the file(s) in question. Other than subtracting
these flags, the original protection bits of the
file(s) will not affected. Another way to obtain this
behavior is use a '-' character as the first character
of the flags you wish to subtract.
ALL Recursively descend directories, performing the desired
Page 1 (printed 4/28/89)
Protect(V1.3) ARP User's Manual Protect(V1.3)
operation on each file and directory for that branch of
the directory tree.
FILES
When using wildcards or the ALL keyword, Protect will
change the protection bits for both files and
directories. Using this keyword will cause protect to
only change the protection bits for Files.
DIRS Like FILES, but changes the protection bits only for
directories.
Q=QUIET
This causes Protect to do its work silently, without
displaying the files and/or directories it is operating
on.
EXAMPLE
Protect *.c -d
Keep all files ending in .c from being deleted by
subtracting the d flag for these files.
Protect * +se
Turn on the script and execute bits. These bits allow some
shells to execute the scripts as though they were programs.
SEE ALSO
List
Page 2 (printed 4/28/89)