Discussion:
[Samba] Rsync GPOs Erro Sysvol
Carlos A. P. Cunha
2016-06-10 17:29:44 UTC
Permalink
Hello!

I have two Dcs Samba 4 version 4.4.0, the DC 2 received rsync to DC 1,
ok this SYSVOL, but necessary execute "samba-tool ntacl sysvol reset",
for correct ids, but now is a one error this process:

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)

One DC 1, is erro in process

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)
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Carlos A. P. Cunha
2016-06-11 19:13:55 UTC
Permalink
Hello!

Any idea?
Post by Carlos A. P. Cunha
Hello!
I have two Dcs Samba 4 version 4.4.0, the DC 2 received rsync to DC 1,
ok this SYSVOL, but necessary execute "samba-tool ntacl sysvol reset",
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)
One DC 1, is erro in process
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)
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Carlos A. P. Cunha
2016-06-14 13:53:59 UTC
Permalink
Hello!

Any idea?
Post by Carlos A. P. Cunha
Hello!
Any idea?
Post by Carlos A. P. Cunha
Hello!
I have two Dcs Samba 4 version 4.4.0, the DC 2 received rsync to DC
1, ok this SYSVOL, but necessary execute "samba-tool ntacl sysvol
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)
One DC 1, is erro in process
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)
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
l***@gmail.com
2016-06-14 14:39:15 UTC
Permalink
Post by Carlos A. P. Cunha
Hello!
Any idea?
Post by Carlos A. P. Cunha
Hello!
Any idea?
Post by Carlos A. P. Cunha
Hello!
I have two Dcs Samba 4 version 4.4.0, the DC 2 received rsync to DC
1, ok this SYSVOL, but necessary execute "samba-tool ntacl sysvol
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)
One DC 1, is erro in process
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)
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?
--
-James
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Carlos A. P. Cunha
2016-06-14 15:08:01 UTC
Permalink
Hello!

Rsync:

DC1 to DC2

rsync -XAaz --delete-after /opt/samba/var/locks/sysvol/
***@sambadc-02:/opt/samba/var/locks/sysvol &> /dev/null ; ssh
***@sambadc-02 '/opt/samba/bin/samba-tool ntacl sysvolreset &> /dev/null'

I do not have backup ......

Thanks
Post by l***@gmail.com
Post by Carlos A. P. Cunha
Hello!
Any idea?
Post by Carlos A. P. Cunha
Hello!
Any idea?
Post by Carlos A. P. Cunha
Hello!
I have two Dcs Samba 4 version 4.4.0, the DC 2 received rsync to DC
1, ok this SYSVOL, but necessary execute "samba-tool ntacl sysvol
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)
One DC 1, is erro in process
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)
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?
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
l***@gmail.com
2016-06-14 15:13:13 UTC
Permalink
Post by Carlos A. P. Cunha
Hello!
DC1 to DC2
rsync -XAaz --delete-after /opt/samba/var/locks/sysvol/
I do not have backup ......
Thanks
Post by l***@gmail.com
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
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Carlos A. P. Cunha
2016-06-14 15:19:27 UTC
Permalink
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
Post by l***@gmail.com
Post by Carlos A. P. Cunha
Hello!
DC1 to DC2
rsync -XAaz --delete-after /opt/samba/var/locks/sysvol/
I do not have backup ......
Thanks
Post by l***@gmail.com
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
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
l***@gmail.com
2016-06-14 19:32:09 UTC
Permalink
Post by Carlos A. P. Cunha
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
Post by l***@gmail.com
Post by Carlos A. P. Cunha
Hello!
DC1 to DC2
rsync -XAaz --delete-after /opt/samba/var/locks/sysvol/
I do not have backup ......
Thanks
Post by l***@gmail.com
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?
--
-James
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Carlos A. P. Cunha
2016-06-15 00:32:01 UTC
Permalink
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}
.....

.........
Post by l***@gmail.com
Post by Carlos A. P. Cunha
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
Post by l***@gmail.com
Post by Carlos A. P. Cunha
Hello!
DC1 to DC2
rsync -XAaz --delete-after /opt/samba/var/locks/sysvol/
I do not have backup ......
Thanks
Post by l***@gmail.com
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?
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
l***@gmail.com
2016-06-15 15:17:11 UTC
Permalink
Post by Carlos A. P. Cunha
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}
.....
.........
Post by l***@gmail.com
Post by Carlos A. P. Cunha
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
Post by l***@gmail.com
Post by Carlos A. P. Cunha
Hello!
DC1 to DC2
rsync -XAaz --delete-after /opt/samba/var/locks/sysvol/
I do not have backup ......
Thanks
Post by l***@gmail.com
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?
--
-James
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Carlos A. P. Cunha
2016-06-15 15:41:56 UTC
Permalink
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.
Post by l***@gmail.com
Post by Carlos A. P. Cunha
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}
.....
.........
Post by l***@gmail.com
Post by Carlos A. P. Cunha
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
Post by l***@gmail.com
Post by Carlos A. P. Cunha
Hello!
DC1 to DC2
rsync -XAaz --delete-after /opt/samba/var/locks/sysvol/
I do not have backup ......
Thanks
Post by l***@gmail.com
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?
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Carlos A. P. Cunha
2016-06-17 15:10:01 UTC
Permalink
Hello!


something else I can try?


Thanks
Post by Carlos A. P. Cunha
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.
Post by l***@gmail.com
Post by Carlos A. P. Cunha
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}
.....
.........
Post by l***@gmail.com
Post by Carlos A. P. Cunha
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
Post by l***@gmail.com
Post by Carlos A. P. Cunha
Hello!
DC1 to DC2
rsync -XAaz --delete-after /opt/samba/var/locks/sysvol/
I do not have backup ......
Thanks
Post by l***@gmail.com
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?
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
l***@gmail.com
2016-06-17 15:15:30 UTC
Permalink
Post by Carlos A. P. Cunha
Hello!
something else I can try?
Thanks
Post by Carlos A. P. Cunha
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.
Post by l***@gmail.com
Post by Carlos A. P. Cunha
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}
.....
.........
Post by l***@gmail.com
Post by Carlos A. P. Cunha
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
Post by l***@gmail.com
Post by Carlos A. P. Cunha
Hello!
DC1 to DC2
rsync -XAaz --delete-after /opt/samba/var/locks/sysvol/
I do not have backup ......
Thanks
Post by l***@gmail.com
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?
Have you verified the sysvol path is correct in your smb.conf file?
--
-James
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Carlos A. P. Cunha
2016-06-17 16:32:44 UTC
Permalink
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
Post by l***@gmail.com
Have you verified the sysvol path is correct in your smb.conf file?
--
-James
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
l***@gmail.com
2016-06-17 16:41:46 UTC
Permalink
Post by Carlos A. P. Cunha
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.
/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
Post by l***@gmail.com
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?
--
-James
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Carlos A. P. Cunha
2016-06-17 18:57:17 UTC
Permalink
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}
Post by l***@gmail.com
Post by Carlos A. P. Cunha
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.
/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
Post by l***@gmail.com
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?
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Loading...