Das ist kein Fehler, sondern eine bewusste Änderung am Verhalten von su, siehepeter1969 hat geschrieben:30.04.2019 08:54:32eins ist mir noch aufgefallen: mein System brauchte von Installation an für viele Befehle ein /sbin/ davor, weil dieses offenbar nicht im Path war:
Code: Alles auswählen
$ zcat /usr/share/doc/util-linux/NEWS.Debian.gz
[…]
The util-linux implementation of /bin/su is now used, replacing the
one previously supplied by src:shadow (shipped in login package), and
bringing Debian in line with other modern distributions. The two
implementations are very similar but have some minor differences (and
there might be more that was not yet noticed ofcourse), e.g.
- new 'su' (with no args, i.e. when preserving the environment) also
preserves PATH and IFS, while old su would always reset PATH and IFS
even in 'preserve environment' mode.
- new 'su -' (creating new environment) will do just that […]
[…]
The first difference is probably the most user visible one. Doing
plain 'su' is a really bad idea for many reasons, so using 'su -' is
strongly recommended to always get a newly set up environment similar
to a normal login. If you want to restore behaviour more similar to
the previous one you can add 'ALWAYS_SET_PATH yes' in /etc/login.defs.
Um das alte Verhalten zu haben – su setzt PATH inklusive /sbin und /usr/sbin – sollte man
Code: Alles auswählen
$ su -