Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #198756

Re: New su behavior in util-linux 2.32

From Vincent Lefevre <vincent@vinc17.net>
Newsgroups linux.debian.user
Subject Re: New su behavior in util-linux 2.32
Date 2018-08-14 11:00 +0200
Message-ID <wmDlf-Cz-1@gated-at.bofh.it> (permalink)
References <wlyH0-3qG-9@gated-at.bofh.it> <wmDlf-Cz-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2018-08-12 00:13:31 +0000, Dale Forsyth wrote:
> ________________________________
> From: Pétùr <peturvilj@gmail.com>
> Sent: Saturday, 11 August 2018 7:41 PM
> To: debian-user
> Subject: New su behavior in util-linux 2.32
> 
> Using 'su' generates now an path error when launching programs such as 'shutdown'. The cause is a new behavior described below.
> ---
> util-linux (2.32-0.4) unstable; urgency=medium
> 
>   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.
>   - su '' (empty user string) used to give root, but now returns an error.
>   - previously su only had one pam config, but now 'su -' is configured
>     separately in /etc/pam.d/su-l
> 
>   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.
> ---

And this is illogical: the default behavior cannot be a bad idea.
If the current behavior is really bad, then 'su' should behave
like 'su -'.

> The new 'su' is useless for me because it cannot launch root program.

I have no such problem, though.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

New su behavior in util-linux 2.32 Pétùr <peturvilj@gmail.com> - 2018-08-11 11:50 +0200
  Re: New su behavior in util-linux 2.32 Stefan Krusche <linux@stefan-krusche.de> - 2018-08-11 12:00 +0200
    Re: New su behavior in util-linux 2.32 Curt <curty@free.fr> - 2018-08-11 16:10 +0200
      Re: New su behavior in util-linux 2.32 Samuel Henrique <samueloph@debian.org> - 2018-08-11 17:50 +0200
      Re: New su behavior in util-linux 2.32 Pétùr <peturvilj@gmail.com> - 2018-08-11 18:00 +0200
        Re: New su behavior in util-linux 2.32 Curt <curty@free.fr> - 2018-08-11 19:10 +0200
  Re: New su behavior in util-linux 2.32 Nicolas George <george@nsup.org> - 2018-08-11 13:50 +0200
    Re: New su behavior in util-linux 2.32 Pétùr <peturvilj@gmail.com> - 2018-08-11 18:00 +0200
  Re: New su behavior in util-linux 2.32 Greg Wooledge <wooledg@eeg.ccf.org> - 2018-08-13 14:50 +0200
    Re: New su behavior in util-linux 2.32 Darac Marjal <mailinglist@darac.org.uk> - 2018-08-13 15:10 +0200
      Re: New su behavior in util-linux 2.32 Sven Joachim <svenjoac@gmx.de> - 2018-08-13 15:40 +0200
  Re: New su behavior in util-linux 2.32 Vincent Lefevre <vincent@vinc17.net> - 2018-08-14 11:00 +0200

csiph-web