PRIVDEF parameter: Difference between revisions

From m204wiki
Jump to navigation Jump to search
Line 20: Line 20:
<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><car>[[Security#Record_security|Record security]]</var> override.</td></tr>
<tr><th align="right"><var>X'4000'</var></th><td><var>[[Security#Record_security|Record security]]</var> override.</td></tr>
<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'2000'</var></th><td>Updating of data with ad hoc requests.</td></tr>
<tr><th align="right"><var>X'1000'</var></th><td>Changes, other than deletions, to internal procedures.</td></tr>
<tr><th align="right"><var>X'1000'</var></th><td>Changes, other than deletions, to internal procedures.</td></tr>

Revision as of 15:00, 6 April 2017

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'Access to file related parameters. The file parameters CURFILE and CURPRIV are not affected by this setting.

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 and CURPRIV parameters are not affected by this feature and are 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
ADDLV PRIVDEF SECTY
LOGONENQ READLVL SELLVL
OPENCTL RECSCTY UPDTLVL
PRCLDEF
File size statistics parameters
ASIZEBRESERVEFREESIZE
ASTRPPGBSIZE FVFPG
ATRPGCSIZE MVFPG
BPGPMSTRDPGSRES PDSIZE
BPGPOVFLDRESERVEPDSTRPPG
BRECPPGDSIZE
File performance statistics parameters
ARETRIESDPSUSED OILEAVES
BEXTOVFLEOVFLADD OILPACT
BHIGHPGEOVFLDEL OINBYTES
BLOWPGEXTNADD OINENTRY
BQLENEXTNDEL OINODES
BREUSEHIGHSORT OVFLADD
BREUSEDMSTRADD OVFLDEL
CRETRIESMSTRDEL SPILLADD
DHIGHPGOIDEPTH SPILLDEL
Other file-related parameters
DACTIVEFILEORG HASHKEY
DDNAMES (DISPLAY command option)FISTAT IVERIFY
FICREATE FITRANSSORTKEY
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.