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

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to