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

RHEL 8.9 Minimal Install and DISA non-GUI profile, connected session require user to exit twice before session is closed.

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • rhel-8.9.0
    • scap-security-guide
    • None
    • Major
    • sst_security_compliance
    • ssg_security
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • x86_64
    • None

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

      RHEL 8.9 Minimal Install and DISA non-GUI profile, connected session require user to exit twice before session is closed.

      How reproducible:

      1. Install VM using RHEL8.9 DVD ISO
      2. Select DISK and configure custom layout as required by DISA non-GUI security profile.
      3. Select minimal software install.
      4. Select DISA non-GUI security profile
      5. Setup network configuration.
      6. Change root password and begin install.
      7. Reboot VM.
      8. Open ssh session or log into console.
      9. When exiting a session or console, you have to exit twice.

      Expected results

      Session should be exited

      Actual results

      Need to exit twice.

      Additional Information

      On RHEL 8.7

       

      cat /etc/profile.d/tmux.sh
      if [ "$PS1" ]; then
      parent=$(ps -o ppid= -p $$)
      name=$(ps -o comm= -p $parent)
      case "$name" in sshd|login) exec tmux ;; esac
      fi

       

       

      On RHEL 8.9

      cat /etc/profile.d/tmux.sh
      if [ "$PS1" ]; then
      parent=$(ps -o ppid= -p $$)
      name=$(ps -o comm= -p $parent)
      case "$name" in (sshd|login) tmux ;; esac 
      fi

       

      Workaround

      Modify the /etc/profile.d/tmux.sh file so the content would be as follows

      if [ "$PS1" ]; then
         parent=$(ps -o ppid= -p $$)
         name=$(ps -o comm= -p $parent)
         case "$name" in (sshd|login) exec tmux ;; esac             
      fi

            vpolasek@redhat.com Vojtech Polasek
            rhn-support-abjoshi Abhijeet Joshi
            Vojtech Polasek Vojtech Polasek
            SSG Security QE SSG Security QE
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: