Since processes can run under the UID of the logged in user, it's required
to make sure that the users have the permissions here.
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Björn Baumbach <bbaumbach@samba.org>
Autobuild-User(master): Björn Baumbach <bb@sernet.de>
Autobuild-Date(master): Tue Dec 10 11:40:27 UTC 2024 on atb-devel-224
tf = tarfile.open(backup_file)
tf.extractall(targetdir)
tf.close()
+ # set the permissions on the target dir strict but also relaxed enough
+ os.chmod(targetdir, mode=0o755)
# use the smb.conf that got backed up, by default (save what was
# actually backed up, before we mess with it)