niya
2018-Sep-11 00:16 UTC
[Samba] samba-tool ntacl sysvolreset, - open: error=2 (No such file or directory)
hi everyone installed and joined a second dc following the instructions at https://wiki.samba.org/index.php/Joining_a_Samba_DC_to_an_Existing_Active_Directory both version are 4.8.2 when i try to reset t the Sysvol folder's file system access control lists on the new dc i get the following error sudo samba-tool ntacl sysvolreset open: error=2 (No such file or directory) ERROR(runtime): uncaught exception - (3221225473L, '{Operation Failed} The requested operation was unsuccessful.') File "/usr/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 176, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/site-packages/samba/netcmd/ntacl.py", line 239, in run lp, use_ntvfs=use_ntvfs) File "/usr/lib/python2.7/site-packages/samba/provision/__init__.py", line 1686, in setsysvolacl set_gpos_acl(sysvol, dnsdomain, domainsid, domaindn, samdb, lp, use_ntvfs, passdb=s4_passdb) File "/usr/lib/python2.7/site-packages/samba/provision/__init__.py", line 1579, in set_gpos_acl use_ntvfs=use_ntvfs, skip_invalid_chown=True, passdb=passdb, service=SYSVOL_SERVICE) File "/usr/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) ================================================================================================================= open: error=2 (No such file or directory) - what file or directory is missing ? shadrock
Rowland Penny
2018-Sep-11 07:50 UTC
[Samba] samba-tool ntacl sysvolreset, - open: error=2 (No such file or directory)
On Tue, 11 Sep 2018 01:16:16 +0100 niya via samba <samba at lists.samba.org> wrote:> hi everyone > > installed and joined a second dc following the instructions at > https://wiki.samba.org/index.php/Joining_a_Samba_DC_to_an_Existing_Active_Directory > both version are 4.8.2 > when i try to reset t the Sysvol folder's file system access control > lists on the new dc > i get the following error > > sudo samba-tool ntacl sysvolreset > open: error=2 (No such file or directory) > ERROR(runtime): uncaught exception - (3221225473L, '{Operation > Failed} The requested operation was unsuccessful.') > File "/usr/lib/python2.7/site-packages/samba/netcmd/__init__.py", > line 176, in _run > return self.run(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/samba/netcmd/ntacl.py", > line 239, in run > lp, use_ntvfs=use_ntvfs) > File > "/usr/lib/python2.7/site-packages/samba/provision/__init__.py", line > 1686, in setsysvolacl set_gpos_acl(sysvol, dnsdomain, domainsid, > domaindn, samdb, lp, use_ntvfs, passdb=s4_passdb) > File > "/usr/lib/python2.7/site-packages/samba/provision/__init__.py", line > 1579, in set_gpos_acl use_ntvfs=use_ntvfs, skip_invalid_chown=True, > passdb=passdb, service=SYSVOL_SERVICE) > File "/usr/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) > > =================================================================================================================> > open: error=2 (No such file or directory) - what file or directory > is missing ? > > shadrock > >Probably most of sysvol ;-) Have you synced sysvol and idmap.ldb from the first DC to the second ? See here: https://wiki.samba.org/index.php/SysVol_replication_(DFS-R) Rowland
Johannes Engel
2018-Sep-11 09:16 UTC
[Samba] samba-tool ntacl sysvolreset, - open: error=2 (No such file or directory)
Hi Niya, did you try with argument "-U Administrator"? It might be a permission issue. Best regards Johannes Am Di., 11. Sep. 2018 um 02:17 Uhr schrieb niya via samba < samba at lists.samba.org>:> hi everyone > > installed and joined a second dc following the instructions at > > https://wiki.samba.org/index.php/Joining_a_Samba_DC_to_an_Existing_Active_Directory > both version are 4.8.2 > when i try to reset t the Sysvol folder's file system access control > lists on the new dc > i get the following error > > sudo samba-tool ntacl sysvolreset > open: error=2 (No such file or directory) > ERROR(runtime): uncaught exception - (3221225473L, '{Operation Failed} > The requested operation was unsuccessful.') > File "/usr/lib/python2.7/site-packages/samba/netcmd/__init__.py", > line 176, in _run > return self.run(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/samba/netcmd/ntacl.py", line > 239, in run > lp, use_ntvfs=use_ntvfs) > File "/usr/lib/python2.7/site-packages/samba/provision/__init__.py", > line 1686, in setsysvolacl > set_gpos_acl(sysvol, dnsdomain, domainsid, domaindn, samdb, lp, > use_ntvfs, passdb=s4_passdb) > File "/usr/lib/python2.7/site-packages/samba/provision/__init__.py", > line 1579, in set_gpos_acl > use_ntvfs=use_ntvfs, skip_invalid_chown=True, passdb=passdb, > service=SYSVOL_SERVICE) > File "/usr/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) > > > =================================================================================================================> > open: error=2 (No such file or directory) - what file or directory is > missing ? > > shadrock > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Seemingly Similar Threads
- Setting up Second Samba DC samba-tool ntacl sysvolreset fails
- Erro samba-tool ntacl sysvolreset/sysvolcheck
- samba-tool ntacl sysvolreset, - open: error=2 (No such file or directory)
- sysvolreset error '{Operation Failed} The requested operation was unsuccessful.'
- Problems joining a Samba DC to an existing active directory