On onsdagen den 14 augusti 2002 23.21 Ben Reser wrote: > On Tue, Aug 13, 2002 at 03:01:06PM -0400, Oden Eriksson wrote: > > Hi. > > > > Since all SysV scripts are now using bash they all source /root/.bashrc > > and use that ENV. How is the best practice to prevent this? > > > > rm -f /root/.bashrc ? > > Use #!/bin/sh not #!/bin/bash > or #!/bin/bash --norc > > Search through the bash man page it explains what files get sourced > under what circumstances.
Great! Then "#!/bin/bash --norc" should be in the apache2 init script, and maybe use a .bashrc in the apache users home dir instead. Thanks. -- Regards // Oden Eriksson Deserve-IT Networks -> http://d-srv.com