Global Security Forum

Security Global Forum

Our mission is to provide clients with an online user community of industry peers and IBM experts, to exchange tips and tricks, best practices, and product knowledge. We hope the information you find here helps you maximize the value of your IBM Security solutions.

 View Only
  • 1.  RACF Complex password rule

    Posted Sun June 04, 2023 01:03 PM

    Hi All

    I have request to change racf password rule to force user to use uppercase,number, special character with password length of 8

    Can you please advise how to do this using racf password rule command ?

    Thanks  



    ------------------------------
    Mohammed Ibrahem
    ------------------------------


  • 2.  RE: RACF Complex password rule

    Posted Mon June 05, 2023 02:58 AM

    Hello Mohamed.

    You must of course first of all have the SPECIALCHAR setting set.

    Subsequently you define one password rule with the below command. It will implement the requirements mentioned:
    SETROPTS PASSWORD(RULE1(LENGTH(8:8) MIXEDALL(1:8)))

    Further documentation is available online:
    SETROPTS (Set RACF options) - IBM Documentation

    Best

    Mikael Rasmussen



    ------------------------------
    Mikael Rasmussen
    Senior Mainframe Security Engineer
    Danske Bank
    Brabrand
    +4540766221
    ------------------------------



  • 3.  RE: RACF Complex password rule

    Posted Mon June 05, 2023 03:19 AM

    First of all, I hope you realize that short, upper case passwords are not safe?  8 characters is still short.  Is it your intent to force the users to add at least one number and one national character into the password?

    The RACF security administration manual describes RACF password rules.   The details are in the RACF command reference.

    One example is SETROPTS PASSWORD(RULE1(LENGTH(8) ALPHANUM(1:8)))
    preceded by SETROPTS PASSWORD(NORULES)

    This allows only 8 character passwords, they must have at least one character and at least one digit.  National characters (@,#,$) are optional but allowed.  If you want to demand a special character, you have to think of the position(s) where the user should type a special character and add this in the RULE parameter.  You can have up to 8 rules to give some flexibility to the position.  When a password matches any one rule, it is allowed.

    I have seen the following, and auditors claiming it was safe:

    SETROPTS PASSWORD(RULE1(LENGTH(16) MIXEDNUM(1:16)) RULE2(LENGTH(1:16) ALPHA(1:16)))

    The first rule forces passwords of exactly 16 characters, the second allows even 1 character passwords.  Since only one rule has to allow a password, this is bad.  So check all your password rules and issue SETROPTS PASSWORD(NORULEx)) to delete bad rules.



    ------------------------------
    Rob van Hoboken
    ------------------------------



  • 4.  RE: RACF Complex password rule

    Posted Thu June 08, 2023 09:59 AM

    8 characters in the password is definitely enough



    ------------------------------
    Tara Doridy
    ------------------------------



  • 5.  RE: RACF Complex password rule

    Posted 2 days ago

    Hi Rob,

    Are you sure it is possible to set a password lenght with 16 characters?

    I haven't found in guides.

    It's definitely interesting for us.

    Tks



    ------------------------------
    David Chu
    ------------------------------



  • 6.  RE: RACF Complex password rule

    Posted 2 days ago
    Edited by Rob van Hoboken 2 days ago

    Hi David,

    You're right, RACF passwords are up to 8 characters in length, so read 16 in the SETROPTS PASSWORD(RULEn( )) command as 8.

    You can use RACF password phrases to implement long passwords.  By default this allows phrases from 14 to 100 characters in length, once you allow a user to use a phrase.  If you implement exit ICHPWX11, you can even use phrases from 9 characters.   See the Security Administrator Guide


    ------------------------------
    Rob van Hoboken
    ------------------------------



  • 7.  RE: RACF Complex password rule

    Posted 2 hours ago

    Simple , i did that for years for IBM. Which platform your are talking about, zvm or zos? Well its not too different…. Let me know i will send, of there are more 20 users i will create a exec to do that 



    ------------------------------
    Eduardo Crivelaro
    ------------------------------



  • 8.  RE: RACF Complex password rule

    Posted Mon June 05, 2023 05:01 AM
    Edited by Rob van Hoboken Mon June 05, 2023 05:01 AM

    By the way, this community is for generic security issues, on all platforms.  There is another Z SECURITY community more specific to z/OS, RACF and zSecure.

    ------------------------------
    Rob van Hoboken
    ------------------------------