EasyManua.ls Logo

Radio Shack TRS-80 Model 4 - Page 25

Radio Shack TRS-80 Model 4
418 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
For disk ATTRIBs, the parameters are:
LOCK protects
all
visible files not currently protected by setting
their user and owner passwords to the disk master
password.
UNLOCK removes the user and owner passwords from visible
files if their passwords match the disk master password.
MPW
= "password" states the disk's current master password. If
you don't specify this option, TRSDOS prompts you for
it,
if
the password is not PASSWORD.
NAME[
= "disk name"] specifies the new disk name. If this
parameter
is
omitted, the disk name remains the same.
PW[
= "password"] sets the new disk master password to
password.
If
this parameter is omitted, the disk master
password remains the same.
PW cannot be abbreviated.
drive defaults to Drive
0.
Assigning
Protection Attributes To a
File
Using the Owner and User Passwords. Passwords are first
assigned when the file
is
created. At that time, the owner and user
passwords
are set at the same value (either the password you
specified, or a blank password if you did not specify one).
ATTRIB allows you to assign a file two different passwords. The user
password could
be
for the operator.
It
protects a file's contents at a
certain protection level (set by PROT). For example, if you want an
operator to have limited access
to
a file, you can set the PROTection
level to READ. Then, using the user password, the operator will be
able only to read (list) and execute the file, not change, rename,
re-attrib, or remove
it.
In
the same manner, the owner password could be for the
programmer. Using the owner password, the programmer could
change, remove, re-attrib, or rename the same file. (When you use
the owner password to access a file, TRSDOS ignores the
PROTection level.)
In
short, the user password allows limited access to a file and the
owner password allows total access.
Examples
ATTRIB
CUSTFILE/DAT:l
(USER
= ,OWNER
="
BOSSMAN"
,PROT
=
READ)
(ENTER)
sets the user password blank (so no password is necessary to access
the file), sets the owner password to BOSSMAN, sets the protection
level to read and execute only.
1-20

Other manuals for Radio Shack TRS-80 Model 4

Related product manuals