Thanks for digging this out of the sources, I don't know Bacula well enough
to have done that. It seems a wierd choice to hardcode that. I compiled
from source as it's on Raspian64 so I could patch and rebuild as you
suggest. There may be more to it than the files you found. Not sure about
the cron trick as it would be asynchronous to backups possibly creating
races.

Do you think this qualifies as a bug or just an annoyance? Probably the
latter as it doesn't affect as designed functionality.

Chris


On Thu, 20 Oct 2022, 10:54 pm Bill Arlofski via Bacula-users, <
bacula-users@lists.sourceforge.net> wrote:

> On 10/20/22 13:06, Chris Wilkinson wrote:
> > I wonder if someone could enlighten me on what determines the
> permissions that cloud backup local cache volume directories
> > are created with.
> >
> > I'm seeing that new volumes are created as bacula:tape 740 in the cache
> directory. The cache directory is bacula:tape 755.
> > The SD runs as bacula:tape so the above user:group is consistent.
> >
> > DIR/FD/FD all run on the same machine.
> >
> > There is no problem with backups or restores but I would like new
> volumes to be created as 755 so that any other user can
> > read or ls them. I haven't found any config parameter that enables me to
> set the desired permissions
> >
> > Chris Wilkinson
>
> Hello Chris,
>
> It looks to be hard-coded:
>
> ----8<----
> src/stored/file_driver.c:   if (!makedir(NULL,
> const_cast<char*>(out_fname), 0740)) {
> src/stored/cloud_dev.c:      if (!makedir(dcr->jcr, archive_name.c_str(),
> 0740)) {
> src/stored/generic_driver.c:         mkdir(fname, 0740);
> ----8<----
>
> Of
> course, you can edit those and recompile if you install from source.
>
> Other option is to just cron a chmod -R 0744
> /path/to/cloud/cache/directory/*
>
>
> Hope this helps!
> Bill
>
> --
> Bill Arlofski
> w...@protonmail.com
>
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to