Hello Vaughan,

Could you show us output from the following command?

# ls -la /opt/bacula/etc

Thanks in advance.

Best regards,
Marcin Haba (gani)

On Wed, 18 Oct 2023 at 04:54, Vaughan Wickham <v...@zen.net.au> wrote:
>
> Hello Marcin,
>
> I've since been able to confirm the lighttpd user by reviewing:
> /etc/lighttpd/lighttpd.conf
>
> The server username is: www-data
> Server groupname is: www-data
>
> On that basis, I would have thought that the permissions ought to have 
> already been correctly set.
>
> And in any event, this command should have been appropriate:
> usermod -a -G bacula www-data
>
> Regards,
> Vaughan
>
> -----Original Message-----
> From: Vaughan Wickham
> Sent: Wednesday, October 18, 2023 1:07 PM
> To: 'Marcin Haba' <ganius...@gmail.com>
> Cc: bacula-users@lists.sourceforge.net
> Subject: RE: [Bacula-users] Error 1000: Internal error when trying to update 
> configuration via Baculum
>
> Hello Marcin,
>
> Appreciate your reply.
>
> I have tried the following, without success.
>
> The documentation provides the following example (hint 1) usermod -a -G 
> bacula apache
>
> This is for apache web server.
>
> I am using lighttpd.
>
> So, I tried instead:
> usermod -a -G bacula www-data
>
> After restarting the services:
> php7.4-fpm
> baculum-web-lighttpd
>
> There is no change in behaviour.
>
> I then tried adding the conf files to the /etc/sudoers.d/baculum And 
> restarting the services.
>
> This also made no difference to Baculum web being able to update the conf 
> files.
>
> I'm thinking that lighttpd is not running under user/group: www-data
>
> But I've not been able to submit the right search argument to identify how I 
> can identify what user/group lighttpd is using.
>
> Can you help?
>
> Regards,
> Vaughan
>
> -----Original Message-----
> From: Marcin Haba <ganius...@gmail.com>
> Sent: Wednesday, October 18, 2023 12:12 PM
> To: Vaughan Wickham <v...@zen.net.au>
> Cc: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Error 1000: Internal error when trying to update 
> configuration via Baculum
>
> Hello Vaughan,
>
> Baculum does not set file permissions automatically. It needs to be done 
> manually. I know that you use Baculum but to solve it you can use Bacularis 
> documentation where this case is described:
>
> https://bacularis.app/doc/brief/troubleshooting.html#permission-denied-error-when-saving-bacula-configuration
>
> Good luck!
>
> Best regards,
> Marcin Haba (gani)
>
> On Wed, 18 Oct 2023 at 02:12, Vaughan Wickham <v...@zen.net.au> wrote:
> >
> > Hello,
> >
> >
> >
> > I have tried to update the VolumeRetention period in Pools and encountered 
> > the following error when trying to save the change.
> >
> >
> >
> > Error 1000: Internal error. Warning file_put_contents
> > (/opt/bacula/etc/bacula-dir.conf) failed to open stream: Permission
> > denied
> >
> >
> >
> > It is clear that baculum doesn’t have write access to update the conf file.
> >
> >
> >
> > I had to provide the file path during the setup:
> > /opt/bacula/etc/bacula-dir.conf
> >
> >
> >
> > So, I am sure that the path is correctly configured and I am guessing that 
> > this is a permissions issue.
> >
> >
> >
> > Do I need to add all the conf files into the sudoers file?:
> > /etc/sudoers.d/baculum
> >
> >
> >
> > Regards,
> >
> > Vaughan
> >
> > _______________________________________________
> > 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