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

Sérgio Basto sergio at serjux.com
Thu Feb 21 06:33:45 UTC 2019


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

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

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

etc.

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

[1]
https://lists.samba.org/archive/samba/2018-September/218118.html

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




More information about the samba mailing list