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


Groups > linux.debian.user > #228132

PATH nfg after su

From Bob Bernstein <poobah@ruptured-duck.com>
Newsgroups linux.debian.user
Subject PATH nfg after su
Date 2020-10-23 04:40 +0200
Message-ID <B2V9L-1Tq-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Here I've been sailing along blissfully unaware that when on 
those rare occasions I execute su in a terminal, say to tweak my 
exim4 config, that I had a pretty much useless PATH in the env 
after su-ing:

PATH=/home/bob/bin:/usr/local/bin:/usr/bin:/bin:/usr/games

So I could not, say, execute 'service exim4 restart'. (But 
systemctl was available because /bin was in PATH.)

The above-mentioned blissful unawareness fostered my delusion 
that 'su' in bash loaded the contents of /etc/profile.

But enough about me. Obviously my login process is hosed 
somewhere, no doubt the result of years of bringing this box 
along to its current buster status.

Thoughts? All suggestions will be much appreciated. (I can even 
accept a bit of abuse if that is required of me.)

Thank you.

-- 
  A test of right and wrong must be the means, one would
  think, of ascertaining what is right or wrong, and not a
  consequence of having already ascertained it.

                                   J. S. Mill

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


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