Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97062 - logout as root doesn't execute clear
Summary: logout as root doesn't execute clear
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-25 13:07 UTC by Petteri Räty (RETIRED)
Modified: 2005-06-25 16:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2005-06-25 13:07:12 UTC
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
Comment 1 aLeJ 2005-06-25 13:41:40 UTC
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
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2005-06-25 14:04:33 UTC
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.
Comment 3 SpanKY gentoo-dev 2005-06-25 16:25:03 UTC
current setup is fine