* Ludwig Nussel
Jan Matejek wrote:
Dne 23.8.2010 16:15, Lars Müller napsal(a):
File a feature request, better submit a change or document it.
https://features.opensuse.org/310406
Fix it, don't whine!
gladly - except that there seems to be a general confusion regarding paths, so i am not sure what is the right way to fix it (see feature #310311). modifying default PATH is good enough for me, but maybe not for general public?
I filed feature #310311 to agree on an ordering for the elements in PATH and to have the hardcoded places use the same values. Including sbin in a normal user's PATH by default is yet another feature that can be discusses independently. Also, adding sbin to a users' path could be implemented via /etc/profile only so it only takes effect if a shell is involved. We do not necessarily need
That is already implemented in /etc/profile: [...] if test "$UID" = 0 ; then test -d /opt/kde3/sbin && PATH=/opt/kde3/sbin:$PATH PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH fi [...] Hence, when you do a "sudo -s" already results in the correct PATH. Note that it is not necessary to modify a user's PATH in order to change the PATH that sudo is using, we could simply put Defaults secure_path = /sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin into /etc/sudoers to provide a secure PATH including sbin. I think that would be a more sensible solution which does not unecessarily pollute users PATHs. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org