Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-16896

/etc/profile.d/tmout.sh is not ksh compatible

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-8.10
    • rhel-8.9.0
    • scap-security-guide
    • None
    • None
    • Moderate
    • rhel-sst-security-compliance
    • ssg_security
    • 26
    • None
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • None
    • None

      What were you trying to do that didn't work?

      When customers use ksh as their shell, the /etc/profile.d/tmout.sh file created to satisfy xccdf_org.ssgproject.content_rule_accounts_tmout rule generates an error message when login in:

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

      See also https://github.com/ComplianceAsCode/content/pull/11289 for Upstream PR.

      Please provide the package NVR for which bug is seen:

      scap-security-guide all releases including Upstream

      How reproducible:

      Always

      Steps to reproduce

      1. Log in as a ksh user

      Expected results

      No error message and TMOUT variable set

      Actual results

      Error message and TMOUT variable not set

              vpolasek@redhat.com Vojtech Polasek
              rhn-support-rmetrich Renaud Métrich
              Vojtech Polasek Vojtech Polasek
              Milan Lysonek Milan Lysonek
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: