Re: setting global environmental variables



Bill Marcum <bmarcum@xxxxxxxxx> wrote:
I'm trying to set an environmental variable for all the users. For
users with a shell I added a little line in /etc/bashrc. However for
users without a shell this doesn't work (I'm thinking the apache user
as well as the ftp and mail users). Is there someway to set an
environmental variable for all of these users with a shell of
/bin/false.

Try /etc/environment.

There is an /etc/environment on my Debian system, but none on my RedHat
system. It seems to be specific to certain distributions.

Yours,
Laurenz Albe
.



Relevant Pages

  • Re: a faster /bin/sh (was FasterDapper)
    ... great amount of time, and when I'm _in_ the shell, I want all the bashisms. ... optimizing a Debian system, in this case, for a faster boot. ... I can't tell how much my boot time was decreased because at the same ...
    (Ubuntu)
  • changing the default shell
    ... I wish to change the default shell on my debian system. ... change to affect all current and all future users. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Change in ASCII graphics
    ... Laurenz Albe wrote: ... When I run Midnight Commander as mc from the command line in the root shell, the horizontal and vertical lines that make up the borders have changed to the lower-case letter a with a caret above it. ...
    (comp.os.linux.misc)
  • Re: how to get the hostnames and memory usage biger than 30M?
    ... On Tuesday 15 April 2008 21:43, Bill Marcum wrote: ... I know AWK can do this, but I just want to use shell. ... You are missing a "fi". ...
    (comp.unix.shell)
  • Re: can someone please test this shell snippet for me?
    ... Bill Marcum wrote: ... most valuable attribute of the shell is the ubiquity of feature sets? ...
    (comp.unix.shell)