[Samba] Rsync GPOs Erro Sysvol

Carlos A. P. Cunha carlos.hollow at gmail.com
Fri Jun 17 18:57:17 UTC 2016


This, after performing adjustments in /etc/nsswitch.conf(não know it has 
to do but), the process took about 10 minutes and looking in the sysvol 
folder saw that has changed the permition, but at the end the same 
process error.

samba-tool ntacl sysvolreset
open: error=2 (No such file or directory)
ERROR(runtime): uncaught exception - (-1073741823, 'Undetermined error')
   File 
"/opt/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 
175, in _run
     return self.run(*args, **kwargs)
   File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/ntacl.py", 
line 239, in run
     lp, use_ntvfs=use_ntvfs)
   File 
"/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", 
line 1618, in setsysvolacl
     set_gpos_acl(sysvol, dnsdomain, domainsid, domaindn, samdb, lp, 
use_ntvfs, passdb=s4_passdb)
   File 
"/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", 
line 1523, in set_gpos_acl
     passdb=passdb)
   File 
"/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", 
line 1486, in set_dir_acl
     setntacl(lp, path, acl, domsid, use_ntvfs=use_ntvfs, 
skip_invalid_chown=True, passdb=passdb, service=service)
   File "/opt/samba/lib/python2.7/site-packages/samba/ntacls.py", line 
162, in setntacl
     smbd.set_nt_acl(file, security.SECINFO_OWNER | 
security.SECINFO_GROUP | security.SECINFO_DACL | security.SECINFO_SACL, 
sd, service=service)

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

ls -l  Policies/
total 192
drwxrwx---+ 5 root BUILTIN\administrators 4096 Set 16  2015 
{0B61360F-3848-4672-B9AF-F7C80AA1B296}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Set 16  2015 
{0C635CCE-DC1D-4056-A38C-8F9020480E73}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Set 16  2015 
{1445BB88-53F3-4702-8571-B821DF997681}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Set 16  2015 
{2829B6A7-35EB-4A5D-8E6B-84337D19219B}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Set 16  2015 
{37A55486-D9B3-4616-B6BF-11C80C08E676}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Set 16  2015 
{4DEC359F-42D6-4636-BE00-6AE4FBEA2384}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Out  1  2015 
{54506AE3-9BEF-4932-BDD4-187CB936E731}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Set 16  2015 
{814C5F85-6660-40B6-9229-88E81E20767B}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Set 16  2015 
{82F1084B-AA39-401D-9F1F-CBCF66FA3719}
drwxrwx---+ 4 root BUILTIN\administrators 4096 Set 16  2015 
{8398435D-4C26-437D-9893-81C368D94321}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Set 16  2015 
{8AF4542E-ACF5-47C3-BECC-CD2A2897932E}
drwxrwx---+ 4 root BUILTIN\administrators 4096 Set 10  2015 
{90C96B34-5E64-4AB1-910E-30B5F879F777}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Set 16  2015 
{A0ED4FDF-4813-4A9D-9571-18E8417654EB}
drwxrwx---+ 4 root BUILTIN\administrators 4096 Out  8  2015 
{A63865E6-FD40-4143-8B5D-5445B37AA017}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Nov  5  2015 
{ACB8F3AF-CBDB-4D33-9FD7-94517EA0C678}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Set 16  2015 
{B025A203-0E04-4702-B2E8-4AB15DC0C316}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Set 16  2015 
{B3BA2669-1CE0-4DC8-BC0E-1CA1D57C0CDA}
drwxrwx---+ 4 root BUILTIN\administrators 4096 Jan  5 19:48 
{C337A090-18A2-4BA4-AFDE-F43E9BA29309}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Set 17  2015 
{D0A148C8-E2D7-4AC7-97C2-AA0AB00C7EC3}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Out  9  2015 
{D95AC996-7CAA-4F08-991D-6EBBD409496A}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Set 16  2015 
{DC037D0D-72CE-48B8-9012-FE493E2BF702}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Set 16  2015 
{E8224A95-DEF9-4E87-B4E0-7E3F901D54A5}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Set 16  2015 
{EA2E9E87-27B1-4971-87CC-489E2B099020}
drwxrwx---+ 5 root BUILTIN\administrators 4096 Set 16  2015 
{FA919892-77CE-4426-BC6A-EAEBD09E9663}




Em 17-06-2016 13:41, lingpanda101 at gmail.com escreveu:
> On 6/17/2016 12:32 PM, Carlos A. P. Cunha wrote:
>> Hello!
>> Yes path is correct, so that when you run the reset Sysol he saw 
>> changing permissions of various files (as mentioned) after a time 
>> (over 10 minutes) the error occurred.
>>
>> dc 1 and dc 2:
>>
>> /usr/local/samba/etc/smb.conf
>>
>> [sysvol]
>>         path = /opt/samba/var/locks/sysvol
>>
>>
>> -------------------------------------------
>>
>> ls -l /opt/samba/var/locks/sysvol
>> total 8
>> drwxrwx---+ 4 root BUILTIN\administrators 4096 Jun 14 21:53 mydomain.com
>>
>> ----------------------------------------------
>>
>> ls /opt/samba/var/locks/sysvol/mydomain.com/scripts
>>
>>
>>
>>
>>
>>
>>
>> Em 17-06-2016 12:15, lingpanda101 at gmail.com escreveu:
>>>
>>> Have you verified the sysvol path is correct in your smb.conf file?
>>>
>>> -- 
>>> -James
>>
>
> To clear up confusion you first ran samba-tool ntacl sysvolreset and 
> received this error?
>
> open: error=2 (No such file or directory).
>
> You ran again and this time Samba started to change permissions but 
> failed to complete and game this same exact error? This is on DC1?
>



More information about the samba mailing list