firebird.qa.plugin.ExecutionError: gbak execution failed

gbak: ERROR:unsuccessful metadata update
gbak: ERROR:    ALTER DATABASE failed
gbak: ERROR:    no permission for ALTER access to DATABASE 
gbak:Exiting before completion due to errors

LOG DETAILS:

2026-07-22 08:10:39.927
2026-07-22 08:10:39.939 act_src = <firebird.qa.plugin.Action object at [hex]>
2026-07-22 08:10:39.948 act_res = <firebird.qa.plugin.Action object at [hex]>
2026-07-22 08:10:39.956 tmp_fbk = PosixPath('/var/tmp/qa_2024/test_1884/tmp_core_4524.encrypted.fbk')
2026-07-22 08:10:39.963 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2026-07-22 08:10:39.971
2026-07-22 08:10:39.977 @pytest.mark.encryption
2026-07-22 08:10:39.984 @pytest.mark.version('>=4.0')
2026-07-22 08:10:39.997 def test_1(act_src: Action, act_res: Action, tmp_fbk:Path, capsys):
2026-07-22 08:10:40.009
2026-07-22 08:10:40.017 init_sql = """
2026-07-22 08:10:40.026 set bail on;
2026-07-22 08:10:40.036 create sequence gen_ba0bab start with 12192683;
202

[...SKIPPED...]

-07-22 08:10:41.143 E           gbak:Exiting before completion due to errors
2026-07-22 08:10:41.149
2026-07-22 08:10:41.156 tests/bugs/core_4524_test.py:254: ExecutionError
2026-07-22 08:10:41.163 ---------------------------- Captured stdout setup -----------------------------
2026-07-22 08:10:41.171 Creating db: localhost:/var/tmp/qa_2024/test_1884/test.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]
2026-07-22 08:10:41.178 Creating db: localhost:/var/tmp/qa_2024/test_1884/tmp_core_4524.restored.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]
2026-07-22 08:10:41.183 -------------------------- Captured gbak stderr call ---------------------------
2026-07-22 08:10:41.189 gbak: ERROR:unsuccessful metadata update
2026-07-22 08:10:41.195 gbak: ERROR:    ALTER DATABASE failed
2026-07-22 08:10:41.202 gbak: ERROR:    no permission for ALTER access to DATABASE
2026-07-22 08:10:41.208 gbak:Exiting before completion due to errors