Setting the Path in Debian

Joel Hammer joel
Mon May 17 12:00:55 PDT 2004


On Sun, Mar 28, 2004 at 07:37:02AM -0800, Net Llama! wrote:
> On 03/28/04 07:06, Joel Hammer wrote:
> >Can someone tell me where the PATH can be set for all
> >users in a debian system?
> 
> /etc/profile ?

That doesn't seem to do it.

Here is  /usr/share/doc/bash/README.Debian, which gives
other advice, but this didn't work either:


   5. What is /etc/bash.bashrc? It doesn't seem to be documented.

   The Debian version of bash is compiled with a special option
   (-DSYS_BASHRC) that makes bash read /etc/bash.bashrc before ~/.bashrc
   for interactive non-login shells. So, on Debian systems,
   /etc/bash.bashrc is to ~/.bashrc as /etc/profile is to
   ~/.bash_profile.


I also changed  /etc/login.defs,
but that didn't quite do it, since it only changed the
path when you logged in, not when you simply opened
another shell.

Joel




More information about the Linux-users mailing list