DogtagInstance.backup_config uses shutil.copy to create a backup of the config file. The function does not retain owner and group, so it creates a backup as user and group root:root. It should keep the ownership of the original config
DogtagInstance.backup_config
shutil.copy
root:root
Use os.stat to fetch the original uid and git, then os.chown to change the owner of the .ipabkp file. Migration should fix existing backups, too.
os.stat
os.chown
.ipabkp
See https://pagure.io/dogtagpki/issue/167#comment-496193 for background
Metadata Update from @cheimes: - Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/1693
master:
Metadata Update from @cheimes: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Metadata Update from @pvoborni: - Issue set to the milestone: FreeIPA 4.7 (was: FreeIPA 4.6)
Login to comment on this ticket.