Martin Simmons wrote:
>>>>>> 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
IDK if you got your answer, but "vipw" displays
"bacula:x:405:6:Bacula:/var/lib/bacula:/sbin/nologin" as you can see on
my setup it is in /var/lib/bacula , vipw is your friend.
------------------------------------------------------------------------------
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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|