PRIVDEF parameter: Difference between revisions
mNo edit summary |
|||
(28 intermediate revisions by 4 users not shown) | |||
Line 15: | Line 15: | ||
==Description== | ==Description== | ||
<p>The default user privileges for a public or semi-public file</p> | <p> | ||
<p>Valid settings of <var>PRIVDEF</var> are (options can be summed):</p> | The default user privileges for a public or semi-public file</p> | ||
<p> | |||
Valid settings of <var>PRIVDEF</var> are (options can be summed):</p> | |||
<table> | <table> | ||
<tr class="head"><th>Setting</th><th>Allows...</th></tr> | <tr class="head"><th>Setting</th><th>Allows...</th></tr> | ||
<tr><th align="right"><var>X'8000'</var></th><td>File manager privileges.</td></tr> | <tr><th align="right"><var>X'8000'</var></th><td>File manager privileges.</td></tr> | ||
<tr><th align="right"><var>X'4000'</var></th><td | |||
<tr><th align="right"><var>X'2000'</var></th><td>Updating of data with ad hoc requests.</td></tr> | <tr><th align="right"><var>X'4000'</var></th> | ||
<tr><th align="right"><var>X'1000'</var></th><td>Changes, other than deletions, to internal procedures.</td></tr> | <td>[[Model 204 security features#Record security|Record security]] override.</td></tr> | ||
<tr><th align="right"><var>X'0800'</var></th><td>Updating of data with internal procedures.</td></tr> | |||
<tr><th align="right"><var>X'0400'</var></th><td>Retrieval of data with ad hoc requests.</td></tr> | <tr><th align="right"><var>X'2000'</var></th> | ||
<tr><th align="right"><var>X'0200'</var></th><td><var>DISPLAY</var>, echoing, and copying of internal procedures.</td></tr> | <td>Updating of data with ad hoc requests.</td></tr> | ||
<tr><th align="right"><var>X'0100'</var></th><td>Retrieval of data with internal procedures.</td></tr> | |||
<tr><th align="right"><var>X'0080'</var></th><td>Updating of data with external procedures.</td></tr> | <tr><th align="right"><var>X'1000'</var></th> | ||
<tr><th align="right"><var>X'0040'</var></th><td>Retrieval of data with external procedures.</td></tr> | <td>Changes, other than deletions, to internal [[procedures|procedures]].</td></tr> | ||
<tr><th align="right"><var>X'0020'</var></th><td><var>INCLUDE</var> of internal procedures.</td></tr> | |||
<tr><th align="right"><var>X'0010'</var></th><td>Definition of internal procedures.</td></tr> | <tr><th align="right"><var>X'0800'</var></th> | ||
<tr><th align="right"><var>X'0008'</var></th><td>Deletion of internal procedures.</td></tr> | <td>Updating of data with internal procedures.</td></tr> | ||
<tr><th align="right"><var>X'0001'</var></th><td> | |||
<tr><th align="right"><var>X'0400'</var></th> | |||
<td>Retrieval of data with ad hoc requests.</td></tr> | |||
<tr><th align="right"><var>X'0200'</var></th> | |||
<td><var>[[DISPLAY PROCEDURE command: Procedure text|DISPLAY]]</var>, [[LECHO parameter|echoing]], and [[COPY PROCEDURE_command|copying]] of internal procedures.</td></tr> | |||
<tr><th align="right"><var>X'0100'</var></th> | |||
<td>Retrieval of data with internal procedures.</td></tr> | |||
<tr><th align="right"><var>X'0080'</var></th> | |||
<td>Updating of data with external procedures.</td></tr> | |||
<tr><th align="right"><var>X'0040'</var></th> | |||
<td>Retrieval of data with external procedures.</td></tr> | |||
<tr><th align="right"><var>X'0020'</var></th> | |||
<td><var>[[INCLUDE command|INCLUDE]]</var> of internal procedures.</td></tr> | |||
<tr><th align="right"><var>X'0010'</var></th> | |||
<td>[[PROCEDURE command|Definition]] of internal procedures.</td></tr> | |||
<tr><th align="right"><var>X'0008'</var></th> | |||
<td>[[DELETE PROCEDURE command|Deletion]] of internal procedures.</td></tr> | |||
<tr><th align="right"><var>X'0001'</var></th> | |||
<td>Allows access (VIEW) to all file related parameters. If this bit is off, access to all file parameters, with the exception of CURFILE, is disallowed.</td></tr> | |||
<tr><th colspan="2"><var> | <tr><th colspan="2"><var> | ||
<p>For only a permanent file group:</p> | <p>For only a permanent file group:</p> | ||
</var></th></tr> | </var></th></tr> | ||
<tr><th align="right"><var>X'0004'</var></th><td>Updating of data with procedures from the designated procedure file.</td></tr> | <tr><th align="right"><var>X'0004'</var></th><td>Updating of data with procedures from the designated procedure file.</td></tr> | ||
<tr><th align="right"><var>X'0002'</var></th><td>Retrieval of data with procedures from the designated procedure file. | |||
<tr><th align="right"><var>X'0002'</var></th><td>Retrieval of data with procedures from the designated procedure file. </td></tr> | |||
</table> | </table> | ||
<p> | <p> | ||
The file manager or the system manager can use the <code>RESET PRIVDEF</code> command to set the privilege-controlling bit of <var>PRIVDEF</var> to 1. | The file manager or the system manager can use the <code>RESET PRIVDEF</code> command to set the privilege-controlling bit of <var>PRIVDEF</var> to 1. For information on the transformation of <var>PRIVDEF</var> parameters in the password table, see [[Model 204 security features#Determining file and group privileges|Determining file and group privileges]].</p> | ||
<p> | <p> | ||
The parameters affected by this feature are the following:</p> | The parameters affected by this feature are the following:</p> | ||
Line 46: | Line 77: | ||
<table> | <table> | ||
<caption>Security-related parameters</caption> | <caption>Security-related parameters</caption> | ||
<tr><td> | <tr><td><var>[[ADDLVL parameter|ADDLVL]]</var> </td> | ||
<tr><td>LOGONENQ </td><td>READLVL </td><td>SELLVL</td></tr> | <td>PRIVDEF </td> | ||
<tr><td>OPENCTL </td><td>RECSCTY </td><td>UPDTLVL</td></tr> | <td><var>[[SECTY parameter|SECTY]]</var></td></tr> | ||
<tr><td>PRCLDEF</td><td></td><td></td></tr> | |||
<tr><td><var>[[LOGONENQ parameter|LOGONENQ]]</var> </td> | |||
<td><var>[[READLVL parameter|READLVL]]</var> </td> | |||
<td><var>[[SELLVL parameter|SELLVL]]</var></td></tr> | |||
<tr><td><var>[[OPENCTL parameter|OPENCTL]]</var> </td> | |||
<td><var>[[RECSCTY parameter|RECSCTY]]</var> </td> | |||
<td><var>[[UPDTLVL parameter|UPDTLVL]]</var></td></tr> | |||
<tr><td><var>[[PRCLDEF parameter|PRCLDEF]]</var></td> | |||
<td></td> | |||
<td></td></tr> | |||
</table> | </table> | ||
<table> | <table> | ||
<caption>File size statistics parameters</caption> | <caption>File size statistics parameters</caption> | ||
<tr><td>ASIZE</td><td>BRESERVE</td><td>FREESIZE</td></tr> | <tr><td><var>[[ASIZE parameter|ASIZE]]</var></td> | ||
<tr><td>ASTRPPG</td><td>BSIZE </td><td>FVFPG</td></tr> | <td><var>[[BRESERVE parameter|BRESERVE]]</var></td> | ||
<tr><td>ATRPG</td><td>CSIZE </td><td>MVFPG</td></tr> | <td><var>[[FREESIZE parameter|FREESIZE]]</var></td></tr> | ||
<tr><td>BPGPMSTR</td><td>DPGSRES </td><td>PDSIZE</td></tr> | |||
<tr><td>BPGPOVFL</td><td>DRESERVE</td><td>PDSTRPPG</td></tr> | <tr><td><var>[[ASTRPPG_parameter|ASTRPPG]]</var></td> | ||
<tr><td>BRECPPG</td><td>DSIZE</td><td></td></tr> | <td><var>[[BSIZE_parameter|BSIZE]]</var> </td> | ||
<td><var>[[FVFPG_parameter|FVFPG]]</var></td></tr> | |||
<tr><td><var>[[ATRPG_parameter|ATRPG]]</var></td> | |||
<td><var>[[CSIZE_parameter|CSIZE]]</var> </td> | |||
<td><var>[[MVFPG_parameter|MVFPG]]</var></td></tr> | |||
<tr><td><var>[[BPGPMSTR parameter|BPGPMSTR]]</var></td> | |||
<td><var>[[DPGSRES parameter|DPGSRES]]</var> </td> | |||
<td><var>[[PDSIZE parameter|PDSIZE]]</var></td></tr> | |||
<tr><td><var>[[BPGPOVFL parameter|BPGPOVFL]]</var></td> | |||
<td><var>[[DRESERVE parameter|DRESERVE]]</var></td> | |||
<td><var>[[PDSTRPPG_parameter|PDSTRPPG]]</var></td></tr> | |||
<tr><td><var>[[BRECPPG parameter|BRECPPG]]</var></td> | |||
<td><var>[[DSIZE_parameter|DSIZE]]</var></td> | |||
<td></td></tr> | |||
</table> | </table> | ||
<table> | <table> | ||
<caption>File performance statistics parameters</caption> | <caption>File performance statistics parameters</caption> | ||
<tr><td>ARETRIES</td><td> | <tr><td><var>[[ARETRIES_parameter|ARETRIES]]</var></td> | ||
<tr><td>BEXTOVFL</td><td>EOVFLADD </td><td>OILPACT</td></tr> | <td><var>[[DPGSUSED_parameter|DPGSUSED]]</var> </td> | ||
<tr><td>BHIGHPG</td><td>EOVFLDEL </td><td>OINBYTES</td></tr> | <td><var>[[OILEAVES_parameter|OILEAVES]]</var></td></tr> | ||
<tr><td>BLOWPG</td><td>EXTNADD </td><td>OINENTRY</td></tr> | |||
<tr><td>BQLEN</td><td>EXTNDEL </td><td>OINODES</td></tr> | <tr><td><var>[[BEXTOVFL_parameter|BEXTOVFL]]</var></td> | ||
<tr><td>BREUSE</td><td>HIGHSORT </td><td>OVFLADD</td></tr> | <td><var>[[EOVFLADD_parameter|EOVFLADD]]</var> </td> | ||
<tr><td>BREUSED</td><td>MSTRADD </td><td>OVFLDEL</td></tr> | <td><var>[[OILPACT_parameter|OILPACT]]</var></td></tr> | ||
<tr><td>CRETRIES</td><td>MSTRDEL </td><td>SPILLADD</td></tr> | |||
<tr><td>DHIGHPG</td><td>OIDEPTH </td><td>SPILLDEL</td></tr> | <tr><td><var>[[BHIGHPG_parameter|BHIGHPG]]</var></td> | ||
<td><var>[[EOVFLDEL_parameter|EOVFLDEL]]</var> </td> | |||
<td><var>[[OINBYTES_parameter|OINBYTES]]</var></td></tr> | |||
<tr><td><var>[[BLOWPG_parameter|BLOWPG]]</var></td> | |||
<td><var>[[EXTNADD_parameter|EXTNADD]]</var> </td> | |||
<td><var>[[OINENTRY_parameter|OINENTRY]]</var></td></tr> | |||
<tr><td><var>[[BQLEN_parameter|BQLEN]]</var></td> | |||
<td><var>[[EXTNDEL_parameter|EXTNDEL]]</var> </td> | |||
<td><var>[[OINODES_parameter|OINODES]]</var></td></tr> | |||
<tr><td><var>[[BREUSE_parameter|BREUSE]]</var></td> | |||
<td><var>[[HIGHSORT_parameter|HIGHSORT]]</var> </td> | |||
<td><var>[[OVFLADD_parameter|OVFLADD]]</var></td></tr> | |||
<tr><td><var>[[BREUSED_parameter|BREUSED]]</var></td> | |||
<td><var>[[MSTRADD_parameter|MSTRADD]]</var> </td> | |||
<td><var>[[OVFLDEL_parameter|OVFLDEL]]</var></td></tr> | |||
<tr><td><var>[[CRETRIES parameter|CRETRIES]]</var></td> | |||
<td><var>[[MSTRDEL_parameter|MSTRDEL]]</var> </td> | |||
<td><var>[[SPILLADD_parameter|SPILLADD]]</var></td></tr> | |||
<tr><td><var>[[DHIGHPG_parameter|DHIGHPG]]</var></td> | |||
<td><var>[[OIDEPTH_parameter|OIDEPTH]]</var> </td> | |||
<td><var>[[SPILLDEL_parameter|SPILLDEL]]</var></td></tr> | |||
</table> | </table> | ||
<table> | <table> | ||
<caption>Other file-related parameters</caption> | <caption>Other file-related parameters</caption> | ||
<tr><td>DACTIVE</td><td>FILEORG </td><td>HASHKEY</td></tr> | <tr><td><var>[[DACTIVE_parameter|DACTIVE]]</var></td> | ||
<tr><td>DDNAMES (<var>DISPLAY</var> command option)</td><td>FISTAT </td><td>IVERIFY</td></tr> | <td><var>[[FILEORG_parameter|FILEORG]]</var> </td> | ||
<tr><td>FICREATE </td><td>FITRANS</td><td>SORTKEY</td></tr> | <td><var>[[HASHKEY_parameter|HASHKEY]]</var></td></tr> | ||
<tr><td>FIFLAGS </td><td>FOPT </td><td>VERIFY</td></tr> | |||
<tr><td>FIFORMAT </td><td>FRCVOPT</td><td></td></tr> | <tr><td>DDNAMES (<var>[[DISPLAY_FILE_command|DISPLAY]]</var> command option)</td> | ||
<td><var>[[FISTAT_parameter|FISTAT]]</var> </td> | |||
<td><var>[[IVERIFY_parameter|IVERIFY]]</var></td></tr> | |||
<tr><td><var>[[FICREATE_parameter|FICREATE]]</var> </td> | |||
<td><var>[[FITRANS_parameter|FITRANS]]</var></td> | |||
<td><var>[[SORTKEY_parameter|SORTKEY]]</var></td></tr> | |||
<tr><td><var>[[FIFLAGS_parameter|FIFLAGS]]</var> </td> | |||
<td><var>[[FOPT_parameter|FOPT]]</var> </td> | |||
<td><var>[[VERIFY_parameter|VERIFY]]</var></td></tr> | |||
<tr><td><var>[[FIFORMAT_parameter|FIFORMAT]]</var> </td> | |||
<td><var>[[FRCVOPT_parameter|FRCVOPT]]</var></td> | |||
<td></td></tr> | |||
</table> | </table> | ||
<p>The default setting (X'BFFF') makes all file parameters available to any user of the file. </p> | <p> | ||
The default setting (X'BFFF') makes all file parameters available to any user of the file. </p> | |||
<p class="note"><b>Note:</b> The following restriction applies for certain file management facilities and Workshop/204 facilities such as Screen Painter and Procedure Editor: if you open a file without view file parameter security, you might not be able to execute commands against that file.</p> | <p class="note"><b>Note:</b> The following restriction applies for certain file management facilities and Workshop/204 facilities such as Screen Painter and Procedure Editor: if you open a file without view file parameter security, you might not be able to execute commands against that file.</p> | ||
Latest revision as of 23:39, 15 December 2020
Default file privileges
Summary
- Default value
- X'BFFF'
- Parameter type
- File
- Where set
- During file creation, or reset by file manager and system manager
- Related products
- All
- Introduced
- Model 204 V2.1 or earlier
Description
The default user privileges for a public or semi-public file
Valid settings of PRIVDEF are (options can be summed):
Setting | Allows... |
---|---|
X'8000' | File manager privileges. |
X'4000' | Record security override. |
X'2000' | Updating of data with ad hoc requests. |
X'1000' | Changes, other than deletions, to internal procedures. |
X'0800' | Updating of data with internal procedures. |
X'0400' | Retrieval of data with ad hoc requests. |
X'0200' | DISPLAY, echoing, and copying of internal procedures. |
X'0100' | Retrieval of data with internal procedures. |
X'0080' | Updating of data with external procedures. |
X'0040' | Retrieval of data with external procedures. |
X'0020' | INCLUDE of internal procedures. |
X'0010' | Definition of internal procedures. |
X'0008' | Deletion of internal procedures. |
X'0001' | Allows access (VIEW) to all file related parameters. If this bit is off, access to all file parameters, with the exception of CURFILE, is disallowed. |
For only a permanent file group: | |
X'0004' | Updating of data with procedures from the designated procedure file. |
X'0002' | Retrieval of data with procedures from the designated procedure file. |
The file manager or the system manager can use the RESET PRIVDEF
command to set the privilege-controlling bit of PRIVDEF to 1. For information on the transformation of PRIVDEF parameters in the password table, see Determining file and group privileges.
The parameters affected by this feature are the following:
ADDLVL | PRIVDEF | SECTY |
LOGONENQ | READLVL | SELLVL |
OPENCTL | RECSCTY | UPDTLVL |
PRCLDEF |
ASIZE | BRESERVE | FREESIZE |
ASTRPPG | BSIZE | FVFPG |
ATRPG | CSIZE | MVFPG |
BPGPMSTR | DPGSRES | PDSIZE |
BPGPOVFL | DRESERVE | PDSTRPPG |
BRECPPG | DSIZE |
ARETRIES | DPGSUSED | OILEAVES |
BEXTOVFL | EOVFLADD | OILPACT |
BHIGHPG | EOVFLDEL | OINBYTES |
BLOWPG | EXTNADD | OINENTRY |
BQLEN | EXTNDEL | OINODES |
BREUSE | HIGHSORT | OVFLADD |
BREUSED | MSTRADD | OVFLDEL |
CRETRIES | MSTRDEL | SPILLADD |
DHIGHPG | OIDEPTH | SPILLDEL |
DACTIVE | FILEORG | HASHKEY |
DDNAMES (DISPLAY command option) | FISTAT | IVERIFY |
FICREATE | FITRANS | SORTKEY |
FIFLAGS | FOPT | VERIFY |
FIFORMAT | FRCVOPT |
The default setting (X'BFFF') makes all file parameters available to any user of the file.
Note: The following restriction applies for certain file management facilities and Workshop/204 facilities such as Screen Painter and Procedure Editor: if you open a file without view file parameter security, you might not be able to execute commands against that file.