Hello Stefan,

After adding the www-data to the bacula group you need to restart
php-fpm and web server services.

Here you can find more information about possible ways to solve this error:

https://bacularis.app/doc/brief/troubleshooting.html#permission-denied-error-when-saving-bacula-configuration

Good luck!

Best regards,
Marcin Haba (gani)

On Tue, 27 Feb 2024 at 12:20, Stefan G. Weichinger <li...@xunil.at> wrote:
>
>
> It seems to have worked now ... for the first windows-client.
>
> I am in the process of removing the older release and baculum.
>
> Earlier config was in "/etc/bacula", now the path seems to be
> "/opt/bacula/etc"
>
> I moved the configs, adjusted paths ... also in the API Panel.
>
> Things are *read* ok, but now I can't edit configs -> permission errors
>
> -
>
> /opt/bacula# ls -l etc/
> insgesamt 28
> -rw-rw-r-- 1 bacula bacula 7434 27. Feb 12:11 bacula-dir.conf
> -rw-rw-r-- 1 bacula bacula  494 25. Feb 17:36 bacula-fd.conf
> -rwxrw-rw- 1 bacula bacula 1136 24. Feb 17:21 bacula-fd.conf.dist
> -rw-rw-r-- 1 bacula bacula  952 26. Feb 09:18 bacula-sd.conf
> -rw-rw-r-- 1 bacula bacula  270 25. Feb 17:36 bconsole.conf
> -rwxrw-rw- 1 bacula bacula  265 24. Feb 17:21 bconsole.conf.dist
>
> The sudo-conf:
>
> # cat /etc/sudoers.d/bacularis-api
> Defaults:www-data !requiretty
> www-data ALL = (root) NOPASSWD: /usr/bin/bconsole
>
> www-data ALL = (root) NOPASSWD: /opt/bacula/bin/bconsole
>
> www-data ALL = (root) NOPASSWD: /opt/bacula/scripts/mtx-changer
>
> www-data ALL = (root) NOPASSWD: /opt/bacula/bin/bdirjson
> www-data ALL = (root) NOPASSWD: /opt/bacula/bin/bsdjson
> www-data ALL = (root) NOPASSWD: /opt/bacula/bin/bfdjson
> www-data ALL = (root) NOPASSWD: /opt/bacula/bin/bbconsjson
>
> I added "www-data" to the group "bacula" ... (Debian 12.5 here)
>
>
> When I edit a Fileset and press "Save" ->
>
>   Error Error 1000: Internal error. [Warning]
> file_put_contents(/opt/bacula/etc/bacula-dir.conf): Failed to open
> stream: Permission denied (@line 64 in file
> /usr/share/bacularis/protected/vendor/bacularis/bacularis-common/Common/Modules/ConfigBacula.php).
>
> oh my
>
>
>
> _______________________________________________
> 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


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to