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


Groups > linux.debian.user > #205192

Re: Setting default $PATH for all users

From <tomas@tuxteam.de>
Newsgroups linux.debian.user
Subject Re: Setting default $PATH for all users
Date 2019-02-11 10:00 +0100
Message-ID <xqfBv-4R0-7@gated-at.bofh.it> (permalink)
References (1 earlier) <xpeoa-7kC-15@gated-at.bofh.it> <xpexQ-7nZ-9@gated-at.bofh.it> <xpfNf-83V-7@gated-at.bofh.it> <xpfWV-8mE-23@gated-at.bofh.it> <xqa8N-1ta-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Sun, Feb 10, 2019 at 09:07:13PM -0600, David Wright wrote:
> On Fri 08 Feb 2019 at 10:08:49 (-0500), Dan Ritter wrote:
> > Richard Owlett wrote: 
> > > By my problem definition, any thing in /home/user is not relevant as I
> > > explicitly want something that affects all current and future users.
> > 
> > Everybody, no matter what?
> > 
> > pam_env can do that.
> > 
> > PAM is the pluggable authentication module system, and controls
> > all sorts of logins.
> > 
> > man pam_env  for instructions.
> 
> Good point. And I notice that /etc/pam.d/lightdm talks about
> 
>     # Load environment from /etc/environment and ~/.pam_environment
>     session      required pam_env.so readenv=1
>     session      required pam_env.so readenv=1 envfile=/etc/default/locale
> 
> so experimenting with those files might be an idea.
> 
> BTW I notice that /etc/security/pam_env.conf contains a line that can
> *set* the PATH, but only contains "PATH", not "PATH=". So I'm afraid
> the OP should be searching /etc for USER rather than USER=, even
> though this will output a lot more noise.

As already stated, PAM is an interesting alternative to the X11 path
pursued in another fork of this thread: interesting mainly because
it applies /also/ to other access --um-- paths to the computer (Linux
console, ssh, (ugh!) telnet -- basically everything which eventually
asks PAM for access permission).

It is thus more "universal" than the X11 --um-- path.

Cheers
-- tomás

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


Thread

Setting default $PATH for all users Richard Owlett <rowlett@cloud85.net> - 2019-02-08 14:20 +0100
  Re: Setting default $PATH for all users Roberto C. Sánchez <roberto@debian.org> - 2019-02-08 14:30 +0100
    Re: Setting default $PATH for all users <tomas@tuxteam.de> - 2019-02-08 14:40 +0100
      Re: Setting default $PATH for all users Richard Owlett <rowlett@cloud85.net> - 2019-02-08 16:00 +0100
        Re: Setting default $PATH for all users Dan Ritter <dsr@randomstring.org> - 2019-02-08 16:10 +0100
          Re: Setting default $PATH for all users David Wright <deblis@lionunicorn.co.uk> - 2019-02-11 04:10 +0100
            Re: Setting default $PATH for all users <tomas@tuxteam.de> - 2019-02-11 10:00 +0100
              Re: Setting default $PATH for all users rhkramer@gmail.com - 2019-02-11 13:50 +0100
                Re: Setting default $PATH for all users Curt <curty@free.fr> - 2019-02-11 14:10 +0100
                Re: Setting default $PATH for all users rhkramer@gmail.com - 2019-02-11 18:10 +0100
                Re: Setting default $PATH for all users Curt <curty@free.fr> - 2019-02-11 18:30 +0100
                Re: Setting default $PATH for all users Greg Wooledge <wooledg@eeg.ccf.org> - 2019-02-11 18:40 +0100
                Re: Setting default $PATH for all users Curt <curty@free.fr> - 2019-02-11 18:50 +0100
                Re: Setting default $PATH for all users David Wright <deblis@lionunicorn.co.uk> - 2019-02-11 21:00 +0100
        Re: Setting default $PATH for all users <tomas@tuxteam.de> - 2019-02-08 16:40 +0100
  Re: Setting default $PATH for all users David Wright <deblis@lionunicorn.co.uk> - 2019-02-08 20:10 +0100
    Re: Setting default $PATH for all users Richard Owlett <rowlett@cloud85.net> - 2019-02-10 22:00 +0100
      Re: Setting default $PATH for all users Andy Smith <andy@strugglers.net> - 2019-02-10 22:30 +0100
        Re: Setting default $PATH for all users Richard Owlett <rowlett@cloud85.net> - 2019-02-10 22:50 +0100
          Re: Setting default $PATH for all users Andy Smith <andy@strugglers.net> - 2019-02-11 00:30 +0100
        Re: Setting default $PATH for all users Lee <ler762@gmail.com> - 2019-02-11 00:10 +0100
          Re: Setting default $PATH for all users Richard Owlett <rowlett@cloud85.net> - 2019-02-11 00:30 +0100
            Re: Setting default $PATH for all users Lee <ler762@gmail.com> - 2019-02-11 01:30 +0100
              Re: Setting default $PATH for all users Greg Wooledge <wooledg@eeg.ccf.org> - 2019-02-11 15:40 +0100
      Re: Setting default $PATH for all users <tomas@tuxteam.de> - 2019-02-10 22:50 +0100
        Re: Setting default $PATH for all users Richard Owlett <rowlett@cloud85.net> - 2019-02-10 23:30 +0100
          Re: Setting default $PATH for all users <tomas@tuxteam.de> - 2019-02-11 10:00 +0100
            Re: Setting default $PATH for all users David Wright <deblis@lionunicorn.co.uk> - 2019-02-11 14:50 +0100
      Re: Setting default $PATH for all users David Wright <deblis@lionunicorn.co.uk> - 2019-02-11 03:30 +0100

csiph-web