Results 1 to 2 of 2
su - to many existing users posting annoying process listing
RHEL 4.8 server, either clean installed or upgraded from 4.2/4.4/4.5 to 4.8, exhibit this problem.
Login as a root to ...
- 08-13-2009 #1Just Joined!
- Join Date
- Aug 2009
- Posts
- 2
su - to many existing users posting annoying process listing
su - to many existing users posting annoying process listing
RHEL 4.8 server, either clean installed or upgraded from 4.2/4.4/4.5 to 4.8, exhibit this problem.
Login as a root to RHEL 4.8 server.
/root> echo $SHELL
/bin/bash
ISU023:/root> su - sybase
[1] 24559
[2] 24560
[3] 24561
[4] 24562
[5] 24564
[6] 24568
[7] 24569
[8] 24571
[9] 24573
[10] 24575
ISU023:/local/sybase> exit
ISU023:/root> su - flamingo
[1] 24584
[2] 24585
[3] 24586
[4] 24588
[5] 24590
[6] 24593
[7] 24597
[8] 24599
[9] 24600
[10] 24601
Linux
Below are .bashrc, .kshrc and .profile for the flamingo user.
*************************
.bashrc for flamingo user
*************************
:/local/flamingo> cat .bashrc
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
*************************
.profile for flamingo user:
*************************
flamingo.ISU023:/local/flamingo> cat .profile
set -a # export all variables defined in this script
ENV=$HOME/.kshrc
PLATF=`/bin/uname`
echo "$PLATF"
TERM=vt100
stty erase
if [ $PLATF = "SunOS" ]; then
if /usr/bin/expr $0 : '^-' > /dev/null; then
# if on SUN monitor, set the BackSpace key for backspace
if [ "$TERM" = sun -o "$TERM" = dtterm -o "$TERM" = sun-cmd ] ; then
stty erase ^H
fi
fi
fi
if [ $PLATF = "Linux" ]; then
if /usr/bin/expr $0 : '-' > /dev/null; then
# if on SUN monitor, set the BackSpace key for backspace
if [ "$TERM" = sun -o "$TERM" = dtterm -o "$TERM" = sun-cmd ] ; then
stty erase ^H
fi
fi
fi
*************************
flamingo.ISU023:/local/flamingo> cat .kshrc
*************************
alias h='fc -l'
alias df='/bin/df -k'
alias l='/bin/ls -alF'
PS1=$LOGNAME.`uname -n`':${PWD}> '
FCEDIT=vi
EDITOR=vi
#set -o monitor
#set -o ignoreeof
###############################
# Flamingo environment settings
###############################
FLAMINGO_HOME=/local/flamingo
PLAT=`/bin/uname`
if [ -r /etc/javahome ] ; then
JAVA_HOME=`cat /etc/javahome`
else
JAVA_HOME=/usr/local/pacs/JDK142
fi
if [ -r /etc/orionhome ] ; then
ORION_HOME=`cat /etc/orionhome`
elif [ -d /local/rumba/current-version/orion ] ; then
ORION_HOME=/local/rumba/current-version/orion
fi
# Replace _RMIHost_IP_Address_ with the IP address of the RMI host
RMIHostName=3.28.73.23
# If the RMI registry uses a port other than 35001, adjust the number below
RMIPortNo=35001
LD_LIBRARY_PATH=${FLAMINGO_HOME}/lib/sparc
if [ $PLAT = "Linux" ]
then
PATH=${PATH}:/sbin:/bin:${JAVA_HOME}/bin:${FLAMINGO_HOME}/bin:/usr/bin:/usr/openwin/bin:.:/usr/sbin
else
PATH=${JAVA_HOME}/bin:${FLAMINGO_HOME}/bin:/usr/bin:/usr/openwin/bin:/usr/sbin:/usr/local/bin:.
fi
# Default arguments for stopserver.sh
DFL_EQP=
DFL_SVC=
###############################
Any help greatly appreciated.
Thanks in advance.
Regards,
Pravin
- 08-13-2009 #2Just Joined!
- Join Date
- Aug 2009
- Posts
- 2
Found out RHEL 4.8 bug:
Fix: one line update at least in /etc/profile and, optionally in /etc/bashrc too.
Replace
. $i &>/dev/null
by
. $i >/dev/null 2>&1


Reply With Quote