Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #205130
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Setting default $PATH for all users |
| Date | 2019-02-08 16:00 +0100 |
| Message-ID | <xpfNf-83V-7@gated-at.bofh.it> (permalink) |
| References | <xpeet-7hl-3@gated-at.bofh.it> <xpeoa-7kC-15@gated-at.bofh.it> <xpexQ-7nZ-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 02/08/2019 07:37 AM, tomas@tuxteam.de wrote: > On Fri, Feb 08, 2019 at 08:22:54AM -0500, Roberto C. Sánchez wrote: >> On Fri, Feb 08, 2019 at 07:18:39AM -0600, Richard Owlett wrote: >>> I'm running Debian Stretch with MATE desktop. >>> I want the current user and all future users to include all directories in >>> root's $PATH. >>> >>> I haven't found a definitive answer in my web search. The answer's seem to >>> depend on which Linux is used and multiple parameters. >>> >> As with most things in Linux and Unix, it depends. >> >> Some likely candidates are /etc/bash.bashrc, /etc/profile, >> /etc/profile.d/, and /etc/environment. > > More background: processes inherit their environment from their > parent process, and so on. > > [snip] there are "checkpoints" at which the (user) environment > can be set. > > Traditionally that happens at login (/etc/profile, Edited that to *NO* effect. > ~/.profile By my problem definition, any thing in /home/user is not relevant as I explicitly want something that affects all current and future users. > and all their shell-specific variations -- sometimes you want > slightly different environments for different shells). > > But X. When X came up, a similar mechanism was introduced, to > let programs started directly from X also have nice environments: > That is where Xsession (of which there are system-wide scripts > in (Debian, at least) /etc/X11/Xsession, typically broken up > in task-specific snippets in /etc/X11/Xsession.d -- and user-specific > scripts in e.g. ~/.Xsession (or its older sibling ~/.Xsessionrc)). > > See "man Xsession" and the scripts in /etc/X11/Xsession* -- they > are shell scripts and might inspire you. No mention of path there. > > With the advent of desktop environments things have become > a bit more complex, but I'm the wrong person for that: I just > fled the DE craze ten years ago. > > Cheers > -- tomás >
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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