[Samba] sysvolreset command result in "Undetermined error"
Elias Pereira
empbilly at gmail.com
Wed Jun 7 17:16:31 UTC 2017
Hello,
I deleted some GPOs via ADUC. After that I also deleted the folder for each
GPO. I do not know if that was correct to do! :(
Now when I run the samba-tool command ntacl sysvolreset, the following
error occurs.
root at DC1:~# samba-tool ntacl sysvolreset
*open: error=2 (No such file or directory)*
ERROR(runtime): uncaught exception - (-1073741823, 'Undetermined error')
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line
176, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/ntacl.py", line 239,
in run
lp, use_ntvfs=use_ntvfs)
File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line
1609, in setsysvolacl
set_gpos_acl(sysvol, dnsdomain, domainsid, domaindn, samdb, lp,
use_ntvfs, passdb=s4_passdb)
File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line
1514, in set_gpos_acl
passdb=passdb)
File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line
1477, in set_dir_acl
setntacl(lp, path, acl, domsid, use_ntvfs=use_ntvfs,
skip_invalid_chown=True, passdb=passdb, service=service)
File "/usr/lib/python2.7/dist-packages/samba/ntacls.py", line 128, in
setntacl
smbd.set_nt_acl(file, security.SECINFO_OWNER |security.SECINFO_GROUP |
security.SECINFO_DACL | security.SECINFO_SACL, sd2, service=service)
I have also tried the requested at the link below, but without success.
https://wiki.samba.org/index.php/Updating_Samba#Fixing_Incorrect_Sysvol_and_Directory_ACLs
root at DC1:/var/lib/samba/sysvol/addc.poa.ifrs.edu.br# ls -lah
total 40K
drwxrwx---+ 5 root BUILTIN\administrators 4.0K May 30 18:52 .
drwxrwx---+ 5 root BUILTIN\administrators 4.0K Jun 7 13:55 ..
drwxrwx---+ 4 root BUILTIN\administrators 4.0K Jun 7 13:25 *Policies*
drwxrwx---+ 2 root BUILTIN\administrators 4.0K May 20 10:15 scripts
drwxrwx---+ 11 root BUILTIN\administrators 4.0K May 30 19:01 StarterGPOs
Any idea?
--
Elias Pereira
More information about the samba
mailing list