On Thu, Oct 22, 2020 at 11:41:07PM -0400, Bob Bernstein wrote: > On Thu, 22 Oct 2020, Bob Bernstein wrote: > > > PATH=/home/bob/bin:/usr/local/bin:/usr/bin:/bin:/usr/games > > I examined su(1) and learned that one solution for me is to invoke su with > the '-l' argument, which creates a 'login' shell in the new env. This sets, > for me, the PATH to > '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' > > Which is very cool.. >
Behaviour changed in Buster - su - is now required. [Likewise sudo su - if you use sudo] Catches people out especially because of muscle memory :) All the best, Andy Cater > Thank you. > > -- > A person of great honour in Ireland (who was pleased to stoop so low as to > look into my mind) used to tell me that my mind was like a conjured spirit, > that would do mischief if I did not give it employment. > Jonathan Swift >

