[[ -o rcs ]] || return 0
[[ -e "/etc/profile.env" ]] && source /etc/profile.env
#077 would be more secure, but 022 is generally quite realistic
umask 022
if [[ $(/usr/bin/whoami) == 'root' ]]
then
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"
else
export PATH="/bin:/usr/bin:${PATH}"
fi
unset ROOTPATH