Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#176 - /usr/local/sbin, /usr/sbin and /sbin in user's $PATH

Attached to Project: Arch Linux
Opened by Roman Kreisel (roman.kreisel) - Monday, 29 September 2003, 20:51 GMT
Last edited by Judd Vinet (judd) - Tuesday, 16 December 2003, 23:44 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Judd Vinet (judd)
Architecture All
Severity Very Low
Priority Normal
Reported Version 0.6 Widget
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

The Filesystem Hierarchy Standard tells about the (/usr(/local))/sbin-paths:

Ordinary users should not have to place any of the sbin directories in their path.
(see http://www.pathname.com/fhs/2.2/fhs-3.14.html for more information)

Therefore, it would be nice to apply the following patch to /etc/profile (package bash):

### BEGIN PATCH ###
--- profile.old 2003-09-29 22:32:50.000000000 +0200
+++ profile 2003-09-29 22:33:40.000000000 +0200
@@ -2,7 +2,11 @@
# /etc/profile
#

-export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/opt/bin"
+export PATH="/bin:/usr/bin:/usr/X11R6/bin:/opt/bin"
+if [ $UID -eq 0 ]
+then
+ PATH="/sbin/:/usr/sbin:$PATH"
+fi

export MANPATH="/usr/man:/usr/X11R6/man"
export LESSCHARSET="latin1"
### END PATCH ###

Since it's not a security problem (but uncomfortable for the users) having the sbin-paths in the $PATH, i'll set the priority to "Medium"
This task depends upon

Closed by  Anonymous Submitter
Tuesday, 16 December 2003, 23:44 GMT
Reason for closing:  Deferred
Comment by Judd Vinet (judd) - Tuesday, 16 December 2003, 23:44 GMT
  • Task details edited
I'll be leaving the sbins in $PATH. I like them there, and they don't hurt anything, especially for advanced users that like running things like /sbin/ifconfig as a normal user.

Loading...