Download Print this page

Radio Shack TRS-80 Model II Reference Manual page 37

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

Advertisement

Model II
TRSDOS
ATTRffi
Change a File's Passwords
ATTAIS
file.{ACC"",password~
1,
UPD~password~2,
PAOT
=Jev~l;l
file isa
filesp~ification.
ACC=password"4setsthe access word equal
topassworq~1.n
access word is unchanged.
UPD=password~2
sets the update word equal to password-2.lfo
update word is unchanged.
PROT=levelspecifies the protection level for access.
unchal'lgect
Level
Degl'ef;)Qf access granted
by
access word
NONE
No access
EXEC
Execute only
READ
Read and execute
WRITE
Read, execute and write
RENAME
Rename, read, execute and write
KIII,rename, read, execute and write
(gives access word total access)
ATTRIB
lets you change the passwords to an existing file. Passwords are
initially assigned when the file is created. At that time, the update and access
words are set to the same value (either the password you specified or a blank
password). See Chapter I for details on access and update passwords.
Examples
ATTRIB
DATAFILE
ACC=JULY14, UPD=MOUSE, PROT=READ
Sets the access password to
JULY14
and the update password to
MOUSE.
Use
of the access word will allow only reading and executing the file.
ATTRIB PAYROLL/BAS. SECRET ACC=,
Sets the access word to blanks. The protection level assigned to the
word is left unchanged.
ATTRIB OLD/DAT.Apples UPD=,
Sets the update word to blanks.
ATTRIB PAYROLL/BAS.PW PROT=EXEC
Leaves the access and update words unchanged, but changes the level of
access.
ATTRIB DATAFILE/l.PRN
PROT=,
Sets the access level to Kill.
70

Advertisement

loading