Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redhat 7.3 missing /etc/profile

Status
Not open for further replies.

remdotc

IS-IT--Management
Sep 11, 2003
2
US
Anyone have the /etc/profile for a default install of Redhat 7.3?

Recovering from power failure and this is fragged. I really dont want to reinstall, let alone upgrade to Rh 8 or 9 .
 
Grab the file from the "setup" RPM package on the RH CDs.

ChrisP
RHCE, LPIC-1, CCNA, CNE, MCSE, +10 others
 
Here, you can use mine, I have rh7.3 :)
# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}

# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi

pathmunge /usr/X11R6/bin after

unset pathmunge
# No core files by default
ulimit -S -c 0 > /dev/null 2>&1

USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"

HOSTNAME=`/bin/hostname`
HISTSIZE=1000

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done

unset i
TERM=xterm
export TERM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top