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

Re: PATH nfg after su



On Fri, Oct 23, 2020 at 12:15:24PM +0000, Andrew M.A. Cater wrote:
> Behaviour changed in Buster - su - is now required. [Likewise sudo su - if you use sudo]

That's silly.  Just use "sudo -i" if you want a root login shell, or
"sudo -s" if you want a normal root shell (roughly equivalent to what "su"
used to do before buster).

Using both sudo and su chained together is a complete waste.

Using "sudo su -" is a new one to me.  Not only are you wastefully
running two programs when you only need one, but you're ignoring the
fact that sudo has already changed PATH for you, so you don't need to
force su to run a login shell to do it *again*.


Reply to: