Red Hat Bugzilla – Bug 592979
system global bash.bash_logout is diabled in config-top.h
Last modified: 2014-01-12 19:11:42 EST
Created attachment 414563 [details]
enable system wide /etc bash_logout script
Description of problem:
bash.bash_logout is disabled by default. this used to be enabled in the past? (was used, but now broken)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create /etc/bash.bash_logout to write something to /tmp
2. run bash -l
4. check /tmp, nothing
/etc/bash.bash_logout is not run
simply need to enable the default in config-top.h. see attached diff file.
According to bash man page:
When a login shell exits, bash reads and executes commands from the file ~/.bash_logout, if it exists.
This ~/.bash_logout is generated from /etc/skel/.bash_logout for every new user.
Can you please point me to version of bash when the /etc/bash.bash_logout was used?
This variable was introduced with bash 2.0-beta2, and i swear it used to be enabled by default on some release of RHEL bash.
Any version with SYS_BASH_LOGOUT enabled will run a system wide logout script that is not customizable/changeable by unprivileged users. While user .bash_logouts are dandy, a system wide logout script is needed in some enterprise environments.
All I see is that it wasn't enabled. Tried RHEL2,3,4,5. I think, it was never used.
i stand corrected. This should be moved to feature request then. such a feature is very useful in an enterprise deployment with many bash shell users.
Fixed in bash-3.2-26.el5
Updated in bash-3.2-30.el5
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
The systemwide bash.bash_logout was disabled globally by default. This is now fixed in the config-top.h file to enable .bash_logout as a systemwide default.
What was the consequence of this being disabled/enabled by default? Need information for errata text. Thanks.
This is future feature. It means, it wasn't implemented.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.