From 072cb3bce4569795e76dacef22cb5f4661b2d4ac Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 23 Aug 2019 14:57:39 -0500 Subject: /etc/profile: remove sbin dirs from user PATH --- CHANGELOG.rst | 5 +++++ tree/etc/profile | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 99d6adc..6ec9095 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,3 +1,8 @@ +0.9.4 (Unreleased) +================== +* Remove sbin directories from normal user PATH. + + 0.9.3 (17 Aug 2019) =================== * Release for beta4 diff --git a/tree/etc/profile b/tree/etc/profile index cee9ca1..3be935e 100644 --- a/tree/etc/profile +++ b/tree/etc/profile @@ -12,7 +12,7 @@ if [ $UID -eq 0 ]; then PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" PS1="$(uname -n 2>/dev/null) # " else - PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/sbin:/usr/sbin:/sbin" + PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" PS1="$(whoami 2>/dev/null)@$(uname -n 2>/dev/null) \$ " fi export PATH -- cgit v1.2.3-70-g09d2