Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #228141
| From | "Andrew M.A. Cater" <amacater@einval.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: PATH nfg after su |
| Date | 2020-10-23 14:20 +0200 |
| Message-ID | <B34d4-7mX-9@gated-at.bofh.it> (permalink) |
| References | <B2V9L-1Tq-7@gated-at.bofh.it> <B2Wfv-2uZ-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 >
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
PATH nfg after su Bob Bernstein <poobah@ruptured-duck.com> - 2020-10-23 04:40 +0200
Re: PATH nfg after su Bob Bernstein <poobah@ruptured-duck.com> - 2020-10-23 05:50 +0200
Re: PATH nfg after su Greg Wooledge <wooledg@eeg.ccf.org> - 2020-10-23 14:10 +0200
Re: PATH nfg after su Greg Wooledge <wooledg@eeg.ccf.org> - 2020-10-23 14:20 +0200
Re: PATH nfg after su Tixy <tixy@yxit.co.uk> - 2020-10-23 14:40 +0200
Re: PATH nfg after su Greg Wooledge <wooledg@eeg.ccf.org> - 2020-10-23 14:40 +0200
Re: PATH nfg after su Sven Hartge <sven@svenhartge.de> - 2020-10-23 15:20 +0200
Re: PATH nfg after su Tixy <tixy@yxit.co.uk> - 2020-10-23 20:00 +0200
Re: PATH nfg after su Dan Ritter <dsr@randomstring.org> - 2020-10-23 20:10 +0200
Re: PATH nfg after su "Andrew M.A. Cater" <amacater@einval.com> - 2020-10-24 21:20 +0200
Re: PATH nfg after su <tomas@tuxteam.de> - 2020-10-24 21:40 +0200
Re: PATH nfg after su "Andrew M.A. Cater" <amacater@einval.com> - 2020-10-23 14:20 +0200
csiph-web