-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
rhel-8.9.0
-
None
-
Major
-
sst_security_compliance
-
ssg_security
-
None
-
False
-
-
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:
- Install VM using RHEL8.9 DVD ISO
- Select DISK and configure custom layout as required by DISA non-GUI security profile.
- Select minimal software install.
- Select DISA non-GUI security profile
- Setup network configuration.
- Change root password and begin install.
- Reboot VM.
- Open ssh session or log into console.
- 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
- duplicates
-
RHEL-14349 RHEL 8.8 Minimal Install and DISA non-GUI profile, connected session require user to exit twice before session is closed.
- Closed