Recent Articles

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 ‘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
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.

2 Comments on Useful RACF Commands for Administrators

  1. it was really helpful, It has all the commands I wanted.. thanks..

  2. Anderson Pedrassa // May 6, 2016 at 16:27 //

    Very useful, thank you!

Leave a comment

Your email address will not be published.


%d bloggers like this: