PRIVDEF parameter: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (link repair)
(Changed the description of the X'0001' bit)
Line 60: Line 60:


<tr><th align="right"><var>X'0001'</var></th>
<tr><th align="right"><var>X'0001'</var></th>
<td>Access to file related parameters. The file parameters <var>[[CURFILE parameter|CURFILE]]</var> and <var>[[CURPRIV parameter|CURPRIV]]</var> are not affected by this setting. </td></tr>
<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>
Line 71: Line 71:
</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 <var>CURFILE</var> and <var>CURPRIV</var> parameters are not affected by this feature and are available to all users. (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>
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 <var>CURFILE</var> parameter is not affected by this feature and is available to all users. (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>

Revision as of 23:34, 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):

SettingAllows...
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. The CURFILE parameter is not affected by this feature and is available to all users. (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:

Security-related parameters
ADDLVL PRIVDEF SECTY
LOGONENQ READLVL SELLVL
OPENCTL RECSCTY UPDTLVL
PRCLDEF
File size statistics parameters
ASIZE BRESERVE FREESIZE
ASTRPPG BSIZE FVFPG
ATRPG CSIZE MVFPG
BPGPMSTR DPGSRES PDSIZE
BPGPOVFL DRESERVE PDSTRPPG
BRECPPG DSIZE
File performance statistics parameters
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
Other file-related parameters
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.