[Samba] samba-tool ntacl sysvolreset, - open: error=2 (No such file or directory)

Rowland Penny rpenny at samba.org
Tue Sep 11 07:50:03 UTC 2018


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



More information about the samba mailing list