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


Groups > linux.debian.user > #198622

Re: New su behavior in util-linux 2.32

From Curt <curty@free.fr>
Newsgroups linux.debian.user
Subject Re: New su behavior in util-linux 2.32
Date 2018-08-11 16:10 +0200
Message-ID <wlCKC-5YT-3@gated-at.bofh.it> (permalink)
References <wlyH0-3qG-9@gated-at.bofh.it> <wlyQG-3tJ-9@gated-at.bofh.it>
Organization Unorganized

Show all headers | View raw


On 2018-08-11, Stefan Krusche <linux@stefan-krusche.de> wrote:
>>
>>   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.
>> ---
>>
>> The new 'su' is useless for me because it cannot launch root program.
>> I did the modification in /etc/login.defs and restore the previous
>> behavior. However I am concern with the statement " Doing plain 'su'
>> is a really bad idea for many reasons".
>>
>> Could someone explain to me why this is a bad behavior?
>>
>> Pétùr
>
> Hello Pétùr,
>
> only recently until a couple days ago there was a lengthy discussion about just 
> that. Have you missed that? Have a look in the archives for a subject line like 
> this: "use of su vs sudo" ...

There was a lengthy discussion, but within it I don't remember anyone
detailing the numerous reasons (or any reason at all) executing plain
'su' is a "really bad idea," (where I'm reading "really bad idea" to
mean having unintended and very detrimental consequences to the
hapless user).


> Kind regards,
> Stefan
>
>


-- 
"She was a blank wall, fresh painted." 
Louise Erdrich, Love Medicine

Back to linux.debian.user | Previous | Next — Previous in thread | Next 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