After logging out as root clear is not executed. As normal users this happens. Reproducible: Always Steps to Reproduce: 1. login from console as root 2. logout 3. text inputted as root is left on the screen Expected Results: clear should be moved from /etc/skel/.bash_logout to /etc/bash/bash_logout this way it works for root too aria bash # emerge info Portage 2.0.51.19 (hardened/x86/2.6, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-hardened-r14 i686) ================================================================= System uname: 2.6.11-hardened-r14 i686 AMD Athlon(tm) XP 2600+ Gentoo Base System version 1.6.12 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 28 2005, 09:17:37)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r1, 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/home/distfiles" FEATURES="autoaddcvs autoconfig distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS=" http://trumpetti.atm.tut.fi/gentoo http://lame.lut.fi/linux/gentoo " LANG="en_US.utf8" LC_ALL="en_US.utf8" MAKEOPTS="-j2" PKGDIR="/usr/portage//packages/x86/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage/" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow 3dnowex acl acpi apache2 bash-completion berkdb bzlib cdr crypt cups curl dlloader foomaticdb gd gdbm gpm hardened libwww makecheck mmx ncurses nls nptl pam pic png ppds readline ruby samba sse ssl tcpd tiff unicode usb userlocales vhosts x86 xml2 zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS, LINGUAS
I think it would be a security issue to execute clear by default for root, or even for a normal user (at least change it to /usr/bin/clear, with full path). If you wanna use clear for root too, add it manually :p
It is executed by normal users just as clear now (see /etc/skel/.bash_logout). Isn't it a security threat if stuff written by root to the console is left for everyone to see? I agree that a good administration should configure these things but it doesn't hurt that the default configuration is as good as possible.
current setup is fine