[Samba] Destroyed my samba4 domain

Mario Giammarco mgiammarco at gmail.com
Fri Feb 22 02:28:01 MST 2013

Andrew Bartlett <abartlet <at> samba.org> writes:

> There is no --fix option to samba-tool gpo aclcheck.  What does
> 'samba-tool ntacl sysvolcheck' give?
Sorry wrong cut&paste I mean: 
 samba-tool dbcheck --fix

The command you tell me give this result: 

lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
Processing section "[netlogon]"
Processing section "[sysvol]"
Processing section "[homes]"
Processing section "[scriptmario]"
Processing section "[print$]"
Processing section "[printers]"
ldb_wrap open of idmap.ldb
ERROR(<type 'exceptions.TypeError'>): uncaught exception - (2, 'No such file or
  File "/opt/samba4/lib/python2.7/site-packages/samba/netcmd/__init__.py", line
175, in _run
    return self.run(*args, **kwargs)
  File "/opt/samba4/lib/python2.7/site-packages/samba/netcmd/ntacl.py", line
245, in run
  File "/opt/samba4/lib/python2.7/site-packages/samba/provision/__init__.py",
line 1686, in checksysvolacl
  File "/opt/samba4/lib/python2.7/site-packages/samba/provision/__init__.py",
line 1637, in check_gpos_acl
    domainsid, direct_db_access)
  File "/opt/samba4/lib/python2.7/site-packages/samba/provision/__init__.py",
line 1584, in check_dir_acl
    fsacl = getntacl(lp, path, direct_db_access=direct_db_access)
  File "/opt/samba4/lib/python2.7/site-packages/samba/ntacls.py", line 73, in

> What about the options to fix the permissions as given by the AD tools?

I will search which AD tool give me this option.

> > I forgot to say that I have two domain controllers based on zentyal.
> Is this based on Samba 4.0.3, or if not, which version is it based on?
Thanks for hint, now I see that in ppa there is samba 4.0.3. I was pretty sure
that I have samba 4.0.3 but apparently ubuntu refused to upgrade it and I have

> Which file server are you using?
How can I discover it?

Thanks you very much for pointing me in the right direction.

More information about the samba mailing list