>>>>> On Wed, 14 Jan 2009 05:15:01 -0800, Kevin Keane said: > > In my configuration, the bacula-dir and bacula-sd both run as user > bacula rather than root, as recommended. > > Now I am trying to run a Run Before script that includes wget to a > password-protected site. The user name and password are in a .netrc > file. It doesn't work - wget does not use the user name and password > stored from the .netrc file. Apparently, the Run Before Job script is > using root's environment and home directory even when running as user > "bacula". Consequently, .netrc is unreadable to the script. > > Is there a way to work around this without putting the user name and > password into the script itself?
If wget is using $HOME to find the home directory, then you'll need to set that in the run before script to make it work. __Martin ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users