Hello Chris,

Thanks for reporting this problem.

Yes, the b*json and bconsole paths can be different in various operating
systems. It is the reason why those fields are editable that everybody can
adjust paths to own needs.

Best regards,
Marcin Haba (gani)

On Fri, 11 Mar 2022 at 15:43, Chris Wilkinson <winstonia...@gmail.com>
wrote:

> I should have realised this sooner but I found that the pre-populated
> fields in the API wizard point to incorrect locations for the jsons.
>
> The jsons are located at /usr/lib/bacula/.. not /usr/sbin/..
>
> pi@raspberrypi-b:~ $ locate bsdjson
> /usr/lib/bacula/bsdjson
> etc..
>
> This means that the file /etc/sudoers.d/bacula-api should be:
>
> Defaults:www-data !requiretty
> www-data ALL=NOPASSWD: /usr/sbin/bconsole     <==Note that bconsole is
> still @ /usr/sbin/..
> www-data ALL=NOPASSWD: /usr/lib/bacula/bdirjson
> www-data ALL=NOPASSWD: /usr/lib/bacula/bsdjson
> www-data ALL=NOPASSWD: /usr/lib/bacula/bfdjson
> www-data ALL=NOPASSWD: /usr/lib/bacula/bbconsjson
>
>
> The API wizard needs these paths too.
>
> With these changes, the API wizard now proceeds without error and the
> remainder of the setup goes OK.
>
> Best
> -Chris-
>
>
>
>
> On 11 Mar 2022, at 12:48, Chris Wilkinson <winstonia...@gmail.com> wrote:
>
> Hello Marcin
>
> I ran into a difficulty with the PI sudo set up when using the API wizard
> at step 4.
>
> General configuration
> Directory path for new config files:
> Use sudo:
> x
>
> I checked the ‘use sudo’ box. One example is below but the other fields
> are the same.
> Director
> bdirjson binary file path:
> Main Director config file path (usually bacula-dir.conf):
> We trust you have received the usual lecture from the local System
> Administrator. It usually boils down to these three things: #1) Respect the
> privacy of others. #2) Think before you type. #3) With great power comes
> great responsibility. sudo: no tty present and no askpass program specified
>
> The error is in the last sentence. I am also unclear on what is expected
> in the directory path for new configs at the top of this page. This appears
> to require a path that is writeable by www-data (for Apache2).
>
> This is the /etc/sudoers file (unmodified from stock)
> '
> #
> # This file MUST be edited with the 'visudo' command as root.
> #
> # Please consider adding local content in /etc/sudoers.d/ instead of
> # directly modifying this file.
> #
> # See the man page for details on how to write a sudoers file.
> #
> Defaults env_reset
> Defaults mail_badpass
> Defaults
> secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
>
> # Host alias specification
>
> # User alias specification
>
> # Cmnd alias specification
>
> # User privilege specification
> root ALL=(ALL:ALL) ALL
>
> # Allow members of group sudo to execute any command
> %sudo ALL=(ALL:ALL) ALL
>
> # See sudoers(5) for more information on "#include" directives:
>
> #includedir /etc/sudoers.d
> ‘
>
> www-data is a member of the sudo group.
>
> I created a new file /etc/sudoers.d/baculum-api containing:
>
> Defaults:www-data !requiretty
> www-data ALL=NOPASSWD: /usr/sbin/bconsole
> www-data ALL=NOPASSWD: /usr/sbin/bdirjson
> www-data ALL=NOPASSWD: /usr/sbin/bsdjson
> www-data ALL=NOPASSWD: /usr/sbin/bfdjson
> www-data ALL=NOPASSWD: /usr/sbin/bbconsjson
>
> The above are the same as I have in a Debian/Apache2 configuration that
> works just fine.
>
> Any suggestions where I went wrong ?
>
> Best
> -Chris-
>
>
>
>
> On 7 Mar 2022, at 05:36, Marcin Haba <ganius...@gmail.com> wrote:
>
> Hello Chris,
>
> In bacula.org repositories we don't provide Baculum packages for
> Raspbian. But you can try manual installation using source tar archive.
> Here you can find install instruction:
>
> https://baculum.app/doc/brief/installation.html#manual-installation
>
> Best regards,
> Marcin Haba (gani)
>
> On Sat, 5 Mar 2022 at 22:49, Chris Wilkinson <winstonia...@gmail.com>
> wrote:
>
>> Is it feasible to install Baculum (v9.x) on Raspbian? It is not listed in
>> the official packages list (Bacula is). This is armf so the Debian repo
>> package will not work.
>>
>> I have Bacula running with reasonable performance backing up to a local
>> USB disk.
>>
>> Regards
>> Chris Wilkinson
>> _______________________________________________
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>
>
> --
> "Greater love hath no man than this, that a man lay down his life for his
> friends." Jesus Christ
>
> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za
> przyjaciół swoich." Jezus Chrystus
>
>
>
>

-- 
"Greater love hath no man than this, that a man lay down his life for his
friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za
przyjaciół swoich." Jezus Chrystus
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to