-
Hello, When i now use bacularis to create a new job, this line gets overwritten. Kind Regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello @mrtn-r Thank you for writing your question. Yes, it is known problem. It happens because Bacularis reads the Bacula configuration not directly from config files but by the Bacula JSON tools (bdirjson, bfdjson, bsdjson, bbconsjson) and these tools do not support including configuration by I would really like to support config including and I hope it will happen in a day when Bacula JSON tools will start supporting it. Otherwise the only way to do it is to write own Bacula config parser that is something what we would like to avoid. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hello Martin, Yes, I understand your need. There exists solution but not on the Bacularis level but on the system level. You can remove the writable bit from Bacula config files permissions for the web server/PHP user, or just change the ownership to the Alternatively you can use this one line patch that will protect you agains writing to all Bacula config files at once:
If you installed Bacularis using binary packages, this file you will find in path:
Good luck! Best regards, |
Beta Was this translation helpful? Give feedback.
Hello Martin,
Yes, I understand your need. There exists solution but not on the Bacularis level but on the system level. You can remove the writable bit from Bacula config files permissions for the web server/PHP user, or just change the ownership to the
bacula
user, orroot
user or to any other user different than web server/PHP user. The only important is that the web server user and Bacula components can read them.Alternatively you can use this one line patch that will protect you agains writing to all Bacula config files at once: