protect <wildname> {,<wildname> ... }
Redefine the protection for one or more disc files.
<wildname>
The file or files to have their protection changed.
-o=<prot>
Give a change of owner protection.
-g=<prot>
Give a change of group protection.
-w=<prot>
Give a change of world protection, where <prot> is text containing a combination of the following characters:
r for read access
w for write access
x for execute access
- for padding
-q
Quiet mode. Do not record an error or print an error message if the
file(s) cannot be found.
-t=<oct>
Give the total protection, in the form of an octal constant, e.g. 777. This switch
will cancel any -o, -g
or -w switches.
-v
Prompt for verification before each change.
The protection is the unix system, i.e. read/write/execute for owner/group/world.
Give all access to the owner and read-only access for everybody else.
protect yours.cmd, -o=rwx, -g=r--, -w=r--
Multiple application with verification.
protect *.dat, -t=664, -v