Web lists-archives.com

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




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.


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