Useful RACF Commands for Administrators

The following are a few common RACF commands used by Security Administrators in the Mainframe environment. Note that the commands shown are very simplified examples. More details of the commands and their parameters can be found in IBM’s manual.


User Profiles
AU userid NAME(‘user_name’) DFLTGRP(grp_name) OWNER(owner) PASS(password) Add a userid to the RACF database. Note that this is a very simplified example.
LU userid List a userid info
ALU userid PASSWORD(password) Set a temporary password to a userid. This password will have to be changed when user logs in to the system.
ALU userid REVOKE Revoke a userid
ALU userid RESUME Resume a userid
ALU userid RESUME PASS(password) Resume a userid and set a temporary password.
CO userid GROUP(grp_name) OWN(grp_name) Connect a userid to a RACF group.
RE userid GROUP(grp_name) Remove a userid from a RACF group.
ALU userid NAME(‘user_name’) Change the user name of a userid. Max. of 120 characters available.
ALU userid DATA(‘inst_data’) Change the installation data of a userid. Max. of 255 characters available.
DU userid Delete a userid from RACF database.
Group Profiles
AG grp_name OWNER(owner) SUPGROUP(superior_grp_name) Add a group to RACF.
LG grp_name List a RACF group details.
ALG grp_name SUPGROUP(superior_grp_name) Change the Superior Group of a RACF group.
ALG grp_name DATA(‘inst_data’) Change installation data of a RACF group. Max. of 255 characters available.
DG grp_name Delete a RACF group.
Dataset Profiles
AD ‘ds_profile’ UACC(uacc_level) Add a Dataset profile to RACF database. Note that this is a very simplified example.Ex: AD ‘XPTO.*’ UACC(READ)
LD DATASET(‘ds_profile’) List a dataset profile details.
ALD ‘ds_profile’ UACC(uacc_level) Change a dataset profile UACC.
ALD ‘ds_profile’ OWNER(owner) Change a dataset profile OWNER.
DD ‘ds_profile Delete dataset profile from RACF database.
SR MASK(mask_argument) CLASS(class) List the profiles matching the mask argument and the Class.Ex: SR MASK(sys1) CLASS(DATASET)
PE ‘ds_profile’ ID(userid) GEN AC(access_level) Grants userid access to the dataset profile.
PE ‘ds_profile’ ID(grp_name) GEN AC(access_level) Grants RACF group access to the dataset profile.
General Resources
RDEF class_name profile_name ADDMEM(member) Add a general resource profile.Ex: RDEF PROGRAM AMASPZAP ADDMEM(‘SYS1.LINKLIB’/SYSRES/PADCHK)
RL class_name profile_name ALL List all details of a general resource profile.Ex: RL PROGRAM AMASPZAP ALL
RALT class_name profile_name UACC(acc_level) Changes the general resource profile UACC.Ex: RAL PROGRAM AMASPZAP UACC(READ)
RDEL class_name profile_name Delete a general resource profile.Ex: RDEL PROGRAM AMASPZAP
PE gr_profile CL(class) ID(userid) AC(access_level) Grants userid access to the General resource profile of Class class.
PE gr_profile CL(class) ID(grp_name) AC(access_level) Grants RACF group access to the General resource profile of Class class.
RACF Options
SETROPTS GENERIC(class_name) REFRESH Refresh in-storage profile for a specific CLASS.



Sets in RACF that all passwords must be at least six characters in length and contain at least one numeric character, not in the first or last position. Further, the user’s access to the system must be revoked if five incorrect passwords are entered in a row.
  • cshow.php?s=522999&v=3659&q=129369&r=293019
  • cshow.php?s=619447&v=3480&q=241835&r=293019
  • cshow.php?s=553803&v=6590&q=269529&r=293019
  • cshow.php?s=592221&v=6574&q=284335&r=293019
  • cshow.php?s=433899&v=3787&q=208491&r=293019
  • cshow.php?s=11221&v=547&q=6689&r=293019
  • cshow.php?s=584383&v=6554&q=286775&r=293019
  • cshow.php?s=571483&v=3041&q=269059&r=293019
  • cshow.php?s=97127&v=3&q=10&r=293019


Leave a Reply

Your email address will not be published.


%d bloggers like this: