Contents - Index


 

Use SecDefine to create a new security record.

 

SecDefine may also be entered as SecDef[ine], DefineS[ec] or DefS[ec].

 

 

Required Operands

 

DIR is the directory name.

 

USER is the user id.  Specify "$DFL" for the default entry which determines access to the directory for users who do not have a specific record.

 

SEC specifies the access level.  Specify NULL, EXEC, LIST, EDIT, DEF, DEFL, or DEFS.  NULL is the access that would be achieved if there were no applicable security record.  You may need to create a NULL record if a specific user is not to have the access level which would otherwise be provided by the $DFL record for the directory.

 

Use SecAlter to alter directory/user security entries and SecDelete to delete them.

 

If directory/user security is altered while the user in question is logged on and attached to the directory in question, the new security level won't take effect until the user reattaches to the directory or logs off and logs back on.

 

When Valid

 

The user must have DEFS access level for the directory prefix of the DIR directory (the part of the directory name preceding an imbedded period).  If DIR has no prefix, the user must have system-wide DEFS access.

 

Return Codes

 

OK Successful.

DP Security record already exists.

NF User not found.

SC Inadequate access level.

 

Examples

 

Define security for directory CBAM for user GJB.  Specify DEF level access:

 

   => defs cbam,gjb,def

 

Define default security for directory CMN1.  Specify LIST level access:

 

   => defs cmn1,$dfl,list