From 8974c87e2d0e243c0fc2503fac5b40f447fac65f Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 28 May 2018 13:54:32 -0500 Subject: profile: don't use ROOTPATH Since PATH is supposed to be the same for everyone, we can now drop the code that handles ROOTPATH. --- etc/profile | 8 -------- 1 file changed, 8 deletions(-) diff --git a/etc/profile b/etc/profile index 05584351..2afd51d9 100644 --- a/etc/profile +++ b/etc/profile @@ -18,14 +18,6 @@ export PAGER=${PAGER:-/usr/bin/less} # 077 would be more secure, but 022 is generally quite realistic umask 022 -# Set up PATH depending on whether we're root or a normal user. -# There's no real reason to exclude sbin paths from the normal user, -# but it can make tab-completion easier when they aren't in the -# user's PATH to pollute the executable namespace. -if [ "${EUID-}" = "0" ] || [ "${USER-}" = "root" ] ; then - PATH="${ROOTPATH}" -fi -export PATH unset ROOTPATH # process *.sh files in /etc/profile.d -- cgit v1.2.3-65-gdbad