The following is out of /env/profile if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}" else PATH="/usr/local/bin:/usr/bin:/bin:${PATH}" fi I think that in the "root" case, any previous PATH should be included as well, so the code would look like: if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}:${PATH}" else PATH="/usr/local/bin:/usr/bin:/bin:${PATH}" fi If this is not done, then any newly set PATH entries in /etc/env.d/* will not affect root. Maybe this is by design?
Yes, this is by design for security reasons...