Univention Bugzilla – Bug 40905
consider "rpc share migrate files --acls" as replacement for "robocopy"
Last modified: 2019-01-03 15:46:07 CET
10.200.7.132: win AD 10.200.7.150: UCS + samba4 -> net -U Administrator%Univention.98 rpc share migrate files sysvol \ -S 10.200.7.132 --destination=10.200.7.150 --acls -vvvv syncing [SYSVOL] files and directories including ACLs, without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test] => [\\10.200.7.150\SYSVOL\w2k12.test] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\DfsrPrivate] => [\\10.200.7.150\SYSVOL\w2k12.test\DfsrPrivate] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\DfsrPrivate\ConflictAndDeleted] => [\\10.200.7.150\SYSVOL\w2k12.test\DfsrPrivate\ConflictAndDeleted] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\DfsrPrivate\Deleted] => [\\10.200.7.150\SYSVOL\w2k12.test\DfsrPrivate\Deleted] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\DfsrPrivate\Installing] => [\\10.200.7.150\SYSVOL\w2k12.test\DfsrPrivate\Installing] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\GPT.INI] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\GPT.INI] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Microsoft] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Microsoft] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Microsoft\Windows NT] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Microsoft\Windows NT] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Microsoft\Windows NT\SecEdit] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Microsoft\Windows NT\SecEdit] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Microsoft\Windows NT\SecEdit\GptTmpl.inf] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Microsoft\Windows NT\SecEdit\GptTmpl.inf] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Registry.pol] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Registry.pol] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\USER] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\USER] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}\GPT.INI] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}\GPT.INI] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}\MACHINE] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}\MACHINE] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}\MACHINE\Microsoft] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}\MACHINE\Microsoft] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}\MACHINE\Microsoft\Windows NT] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}\MACHINE\Microsoft\Windows NT] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}\MACHINE\Microsoft\Windows NT\SecEdit] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}\MACHINE\Microsoft\Windows NT\SecEdit] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}\MACHINE\Microsoft\Windows NT\SecEdit\GptTmpl.inf] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}\MACHINE\Microsoft\Windows NT\SecEdit\GptTmpl.inf] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}\USER] => [\\10.200.7.150\SYSVOL\w2k12.test\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}\USER] with ACLs and without DOS Attributes copying [\\10.200.7.132\SYSVOL\w2k12.test\scripts] => [\\10.200.7.150\SYSVOL\w2k12.test\scripts] with ACLs and without DOS Attributes 10.200.7.150: -> getfacl w2k12.test # file: w2k12.test # owner: root # group: System user::rwx user:root:rwx user:5010:r-x user:5035:rwx group::rwx group:Authenticated\040Users:r-x group:System:rwx group:Administrators:rwx group:Server\040Operators:r-x mask::rwx other::--- default:user::rwx default:user:root:rwx default:user:5010:r-x default:user:5035:rwx default:group::--- default:group:Authenticated\040Users:r-x default:group:System:rwx default:group:Administrators:rwx default:group:Server\040Operators:r-x default:mask::rwx default:other::--- -> root@master:/var/lib/samba/sysvol# getfattr -d -m "" w2k12.test # file: w2k12.test security.NTACL=0sBAAEAAAAAgAEAAIAAQBqdbZMD2MUC4zqEpRK0bslMuVsPJyFwS96LIdr9H1hNAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcG9zaXhfYWNsADIPkZbWftEB82PF9qAzuKQhQfCpJTTmzA21YzPwmkLdxxd6IHjUwSkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEABJC0AAAAxAAAAAAAAADQAAAAAQIAAAAAAAUgAAAAIAIAAAEBAAAAAAAFEgAAAAIA5AAKAAAAAAAUAKkAEgABAQAAAAAABQsAAAAACxQAqQASAAEBAAAAAAAFCwAAAAAAGACpABIAAQIAAAAAAAUgAAAAJQIAAAALGACpABIAAQIAAAAAAAUgAAAAJQIAAAAAGAC/AR4AAQIAAAAAAAUgAAAAIAIAAAALGAD/AR8AAQIAAAAAAAUgAAAAIAIAAAAAFAD/AR8AAQEAAAAAAAUSAAAAAAsUAP8BHwABAQAAAAAABRIAAAAAABgAvwEeAAECAAAAAAAFIAAAACACAAAACxQA/wEfAAEBAAAAAAADAAAAAA== system.posix_acl_access=0sAgAAAAEABwD/////AgAHAAAAAAACAAUAkhMAAAIABwCrEwAABAAHAP////8IAAUAkhMAAAgABwCrEwAACAAHALsTAAAIAAUAvxMAABAABwD/////IAAAAP////8= system.posix_acl_default=0sAgAAAAEABwD/////AgAHAAAAAAACAAUAkhMAAAIABwCrEwAABAAAAP////8IAAUAkhMAAAgABwCrEwAACAAHALsTAAAIAAUAvxMAABAABwD/////IAAAAP////8= user.DOSATTRIB=0sMHgxMAAAAwADAAAAEQAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHjCDCLWftEBAAAAAAAAAAA= So maybe we can replace robocopy with this net rpc command during the ad takeover (this would reduce complexity as robocopy has to be started on the windows server during the takeover).
Great!
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.