Re: bash_logout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Paul A wrote on Wed, 1 Apr 2009 11:12:06 -0400:

> If I create a file ~/.bash_logout file it gets executed when the user logs
> out but when I create a system wide /etc/bash_logout it doesn't work.
> 
> Not what the issue is since I couldn't find anything on that.

AFAIK, there is no basic mechanism that tells to read /etc/bash_whatever for 
each user. For instance if you look in the default ~/.bashrc you will see 
that:

# Source global definitions
if [ -f /etc/bashrc ]; then
    . /etc/bashrc
fi

You have to do it the same way with bash_logout.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux