"/etc/profile[68]: .: line xxx: declare: not found" error message displaying when logging in as a ksh user

Solution Verified - Updated -

Issue

  • When logging into the system as a user having ksh as its shell, the following error message is seen

    /etc/profile[68]: .: line 731: declare: not found
    

    Line number (here above 731) may vary.

Environment

  • Red Hat Enterprise Linux 8 and later
    • ksh
    • OpenSCAP security profiles CIS, STIG, ANSSI NT28 or BP28

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content