The branch, master has been updated
       via  b9755f88404 samba-tool/backup: set the right permissions on our 
root dir
      from  69c5f5c2dde docs-xml: Change 'DEBUGLEVEL' -> 'level' to match the 
option description

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit b9755f88404c5c4ed7f68173daf398afac932191
Author: Björn Jacke <[email protected]>
Date:   Tue Oct 15 11:43:58 2024 +0200

    samba-tool/backup: set the right permissions on our root dir
    
    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 <[email protected]>
    Reviewed-by: Björn Baumbach <[email protected]>
    
    Autobuild-User(master): Björn Baumbach <[email protected]>
    Autobuild-Date(master): Tue Dec 10 11:40:27 UTC 2024 on atb-devel-224

-----------------------------------------------------------------------

Summary of changes:
 python/samba/netcmd/domain/backup.py | 2 ++
 1 file changed, 2 insertions(+)


Changeset truncated at 500 lines:

diff --git a/python/samba/netcmd/domain/backup.py 
b/python/samba/netcmd/domain/backup.py
index b1b57c04a7f..a72c6daaded 100644
--- a/python/samba/netcmd/domain/backup.py
+++ b/python/samba/netcmd/domain/backup.py
@@ -500,6 +500,8 @@ class cmd_domain_backup_restore(cmd_fsmo_seize):
         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)


-- 
Samba Shared Repository

Reply via email to