[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: su aus util-linux in Sid



Martin Steigerwald <martin@lichtvoll.de> wrote:
> Sven Hartge - 04.08.18, 21:03:
>> Martin Steigerwald <martin@lichtvoll.de> wrote:
>> > Hat jemand das vielleicht schon getan und weiß den Grund für diese
>> > IMO grundbescheuerte Änderung? Und kann ich das abstellen?
>> 
>> Der Grund ist, dass Debian sich jetzt so verhält wie alle andere
>> Distributionen dies schon immer getan haben.
>> 
>> Wie kannst du das abstellen? Gar nicht, weil streng genommen deine
>> Arbeitsweise bisher "falsch" war, im Gesamtkontext gesehen. (Ja, ich
>> weiß, das ist nicht das, was du hören wolltest.)

> Aha. Hast Du da eine Quelle, die das in klaren Worten erklärt? Bitte 
> *mit* Begründung.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904988

https://salsa.debian.org/debian/util-linux/commit/b95fbe9d79173058204e226531f4b1f9ad2f26f7

Es scheint doch konfigurierbar zu sein:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833256#90

quote:

    Debian would have to add "ALWAYS_SET_PATH yes" to "/etc/login.defs"
    to preserve its current behavior.

Begründung:

,----
| The problem is still that we need to choose between preserving old
| Debian behaviour or being in line with how every other distribution
| works. We can patch the defaults in debian, but do we want to be
| different? The point of this switch was both to switch to the same
| (maintained) implementation everyone else uses as well as getting
| the same behaviour in every possible corner case that maybe noone
| noticed (but pointless differences between distributions are annoying
| and timeconsuming to debug).
`----

Und hier, direkt folgend, was ich ja auch schon schrieb:

,----
| Mainly though, using 'su' should NEVER be done. It comes with so many
| problems. You should never be root while having the environment from
| another user. Even if it 'seems to work' for you, just don't do it!
| Ever!
`----

,----
| For sanity 'su -l' (aka 'su -') should be the default, but for legacy
| reasons it's hard to make this change now. Also sudo is just a better
| tool (with much more sane defaults) so su should probably simply be
| completely deprecated. OTOH I bet there's a spec (like POSIX) that
| requires it (and documents it's insane default behaviour).
`----

Zusätzlich kommt noch dazu, dass "su" immer eine neue Session im logind
öffnet. Als alternative für Szenarien, wo man dies nicht will (und dein
Fall scheint so einer zu sein), gibt es ein alternatives
"wechsel-den-user-Kontext"-Kommando, welches mir dummerweise gerade
nicht einfällt.

S°

-- 
Sigmentation fault. Core dumped.


Reply to: