User`s guide
Table 2-4. Password Protection Modes
Password Access level allowed wben the Password
Mode is not supplied.
1. Read The file cannot be read.
2. Write The file can be read, but not modified.
3. Delete The file can be modified, but not
deleted.
If a file is password protected in Read mode, the password must be supplied to open
the file. A file protected in Write mode cannot be written to without the password.
A file protected in Delete mode allows read and write access, but the user must
'fy the password to delete the file, rename the file, or to modify the file's attri-
speci
butes. Thus, password protection in mode 1 implies mode 2 and 3 protection, and
mode 2 protection implies mode 3 protection. All three modes require the user to
specify the password to delete the file, rename the file, or to modify the file's attributes.
If the correct password is supplied, or if password protection is disabled by the
Directory Label, then access to the BDOS functions is the same as for a file that is
not password protected. In addition, the Search For First and Search For Next func-
tions are not affected by file passwords.
Table 2-5 lists the BDOS functions that test for password.
Table 2-5. BDOS Functions That Test For Password
15. Open File
19. Delete File
23. Rename File
30. Set File Attributes
99. Truncate File
100. Set Directory Label
103. Write File XFCB
2-22
2.3 BDOS File System CP/M 3 Programmer's Guide