[Samba] Rsync GPOs Erro Sysvol

Carlos A. P. Cunha carlos.hollow at gmail.com
Fri Jun 17 15:10:01 UTC 2016


Hello!


something else I can try?


Thanks


Em 15-06-2016 12:41, Carlos A. P. Cunha escreveu:
>
> Hello!
> It may be, what I did yesterday was to adjust the /etc/nsswitch.conf 
> of my DCs, and again ran the sysvolreset takes more than 10 minutes it 
> changed several files (permissions) within the Sysvol, but Finau gave 
> error (the same) .
> The some form of correction?
>
> Thank you.
>
>
> Em 15-06-2016 12:17, lingpanda101 at gmail.com escreveu:
>> On 6/14/2016 8:32 PM, Carlos A. P. Cunha wrote:
>>> Hello!!
>>>
>>> ls -l /opt/samba/var/locks/sysvol/mydominio.local
>>> total 16
>>> drwxrwx---+ 26 root 3000000 4096 Jan  5 19:48 Policies
>>> drwxrwx---+  2 root 3000000 4096 Jul 31  2015 scripts
>>>
>>> ls -l Policies/
>>> total 192
>>> drwxrwx---+ 5 root 3000000 4096 Set 16  2015 
>>> {0B61360F-3848-4672-B9AF-F7C80AA1B296}
>>> drwxrwx---+ 5 root 3000000 4096 Set 16  2015 
>>> {0C635CCE-DC1D-4056-A38C-8F9020480E73}
>>> drwxrwx---+ 5 root 3000000 4096 Set 16  2015 
>>> {1445BB88-53F3-4702-8571-B821DF997681}
>>> drwxrwx---+ 5 root 3000000 4096 Set 16  2015 
>>> {2829B6A7-35EB-4A5D-8E6B-84337D19219B}
>>> drwxrwx---+ 5 root 3000000 4096 Set 16  2015 
>>> {37A55486-D9B3-4616-B6BF-11C80C08E676}
>>> drwxrwx---+ 5 root 3000000 4096 Set 16  2015 
>>> {4DEC359F-42D6-4636-BE00-6AE4FBEA2384}
>>> .....
>>>
>>> .........
>>>
>>>
>>> Em 14-06-2016 16:32, lingpanda101 at gmail.com escreveu:
>>>> On 6/14/2016 11:19 AM, Carlos A. P. Cunha wrote:
>>>>> DC 1 ->
>>>>>
>>>>> ls -l /opt/samba/var/locks/sysvol/sysvol/
>>>>> ls: cannot access /opt/samba/var/locks/sysvol/sysvol/: No such 
>>>>> file or directory
>>>>>
>>>>> ls -l /opt/samba/var/locks/sysvol/
>>>>> total 8
>>>>> drwxrwx---+ 4 root 3000000 4096 Jan  4 17:34 mydominio.local
>>>>>
>>>>>
>>>>> DC 2 ->
>>>>>
>>>>> ls -l /opt/samba/var/locks/sysvol/sysvol/
>>>>> ls: cannot access /opt/samba/var/locks/sysvol/sysvol/: No such 
>>>>> file or directory
>>>>>
>>>>> ls -l /opt/samba/var/locks/sysvol/
>>>>> total 8
>>>>> drwxrwx---+ 4 root 3000000 4096 Jan  4 17:34 mydominio.local
>>>>>
>>>>> Thanks
>>>>>
>>>>> Em 14-06-2016 12:13, lingpanda101 at gmail.com escreveu:
>>>>>> On 6/14/2016 10:47 AM, Carlos A. P. Cunha wrote:
>>>>>>>
>>>>>>> Hello!
>>>>>>>
>>>>>>> Rsync:
>>>>>>>
>>>>>>> DC1 to DC2
>>>>>>>
>>>>>>> rsync  -XAaz --delete-after /opt/samba/var/locks/sysvol/ 
>>>>>>> root at sambadc-02:/opt/samba/var/locks/sysvol &> /dev/null ; ssh 
>>>>>>> root at sambadc-02 '/opt/samba/bin/samba-tool ntacl sysvolreset &> 
>>>>>>> /dev/null'
>>>>>>>
>>>>>>> I do not have backup ......
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>>
>>>>>>> Em 14-06-2016 11:39, lingpanda101 at gmail.com escreveu:
>>>>>>>> I think you have a issue with your rsync command. Can you post 
>>>>>>>> the command you are using? Did you make a backup of your sysvol 
>>>>>>>> folder before using rysnc? 
>>>>>>>
>>>>>>
>>>>>> On your DC2 can you see if you have the following folder structure?
>>>>>>
>>>>>> "/opt/samba/var/locks/sysvol/sysvol"
>>>>>>
>>>>>> Notice the two sysvol folders mentioned above?
>>>>>>
>>>>>> On DC1 do you have contents in your sysvol folder?
>>>>>>
>>>>>> -- 
>>>>>> -James
>>>>>
>>>>
>>>> What are the contents of
>>>>
>>>> ls -l /opt/samba/var/locks/sysvol/mydominio.local
>>>>
>>>> on DC1?
>>>>
>>>> Does it contain the Policies and scripts folders?
>>>>
>>>
>>>
>>
>> The last time this happened to me I had inadvertently changed 
>> permission on one of my polices. Do you recall this possibly 
>> happening? Is your sysvol share defined in your smb.conf correctly?
>>
>



More information about the samba mailing list