Download Print this page

Radio Shack TRS-80 Model II Reference Manual page 89

Disk operating system
Hide thumbs Also See for TRS-80 Model II:

Advertisement

Library Commands
PROT
Use Diskette's Master Password
PROT
:d {OLD =pas$word, options}
:d
is a drive specification. The colon is optional
OLD =password
specifies the diskette's current master password.
TRSDOS diskette is supplied with the password PASSWORD.)
options
include any of the following:
NEW
=
password
Gives TRSDOS the new master password (up to eight
alphanumeric characters).
LOCK
Tells TRSDQS to protect all user files with the latest master
password. Updateanoaccess words will both be set to this pas'swlord.
UNLOCK
TeUs TRSDOSto remove passwords from all user
If LOCK and UNLOCK are omitted, user file protection is left unchanged. ·Ifone is
used, the other must be omitted.
PROT
changes file protection on a large scale.
If
you know the diskette's
master password, you can change it. You can also protect or un-protect all
user files.
A diskette's master password is initially assigned during the format or backup
process. The
TRSDOS
diskette is supplied with the master password
PASSWORD.
Example
PROT
1
OLD::::PASSWORD,
NElrJ=:+120
Tells
TRSDOS
to change the master password of the drive 1 diskette from
PASSWORD
to
H20.
PROT 0
OLD::::H20, UNLOCK
Tells
TRSDOS
to remove passwords from every user file on the drive 0 diskette
(must have the password
H2O).
PROT 0
OLD=H20, NEW=ELEPHANT, LOCK
Tells
TRSDOS
to change the master password from
H20
to
ELEPHANT
and
assign the new one to every user file.
125

Advertisement

loading