Web lists-archives.com

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

I got same problem describe in [1] python error end with 

 File "/usr/lib/python2.7/site-packages/samba/ntacls.py", line 162, in 

so I edited ntacls.py [2] and one line before the error (line 161 in
this case) I add print(file) and I found default domain policie
{31B2F340-016D-11D2-945F-00C04FB984F9} was gone from file system (the
error is pretty clear "no such file or directory".

For windows "dcgpofix will restore the default domain policy." but we are in Linux .So I had downloaded https://github.com/avati/samba/tree/master/source4/selftest/provisions/release-4-0-0/sysvol/release-4-0-0.samba.corp/Policies

and replace the files again and was be able to fix it with 

samba-tool ntacl sysvolreset
samba-tool ntacl sysvolcheck
samba-tool dbcheck --cross-ncs --reset-well-known-acls --fix


Conclusion, for some reason RAST or some windows tools clean the file... 


vi /usr/lib64/python2.7/site-packages/samba/ntacls.py
Sérgio M. B.

To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba