Hi, i would like to set some perm env. variables for bash, i am able to do it for root and my user account, but when i change to su i lose my evars. Any ideas would be most appreciated, im using slackware 8.1 by the way.
{edit}
I think i can explain this better:
Code:
if [ "`id -u`" = "0"]; then
echo $PATH | grep /usr/local/sbin 1> /dev/null 2> /dev/null
if [ ! $? = 0 ]; then
PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH
export PATH=$PATH:/Exec
HOWTO=/usr/doc/Linux-HOWTOs
MINI=/usr/doc/Linux-mini-HOWTOs
cdrw=/dev/scd0
floppy=/dev/fd0h1440
fi
fi
The above works for root, and i can do it for my user account,
but when i change to root with su from my user account i lose
my evars, hope that clears things up, thanks again.