Carlos A. P. Cunha
2015-Oct-03 00:14 UTC
[Samba] Erro samba-tool ntacl sysvolreset/sysvolcheck
Hi I'm with this problem? Version: Samba 4.3 (4.2 upgrade) S.O .: Ubuntu 4.14 samba-tool ntacl sysvolreset open: error=2 (No such file or directory) ERROR(runtime): uncaught exception - (-1073741823, 'Undetermined error') File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/ntacl.py", line 218, in run lp, use_ntvfs=use_ntvfs) File "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", line 1619, in setsysvolacl set_gpos_acl(sysvol, dnsdomain, domainsid, domaindn, samdb, lp, use_ntvfs, passdb=s4_passdb) File "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", line 1524, in set_gpos_acl passdb=passdb) File "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", line 1487, in set_dir_acl setntacl(lp, path, acl, domsid, use_ntvfs=use_ntvfs, skip_invalid_chown=True, passdb=passdb, service=service) File "/opt/samba/lib/python2.7/site-packages/samba/ntacls.py", line 154, in setntacl smbd.set_nt_acl(file, security.SECINFO_OWNER | security.SECINFO_GROUP | security.SECINFO_DACL | security.SECINFO_SACL, sd, service=service) --------------------------------------------------- samba-tool ntacl sysvolcheck ERROR(<type 'exceptions.TypeError'>): uncaught exception - (2, 'No such file or directory') File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/ntacl.py", line 249, in run lp) File "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", line 1733, in checksysvolacl direct_db_access) File "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", line 1684, in check_gpos_acl domainsid, direct_db_access) File "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", line 1628, in check_dir_acl fsacl = getntacl(lp, path, direct_db_access=direct_db_access, service=SYSVOL_SERVICE) File "/opt/samba/lib/python2.7/site-packages/samba/ntacls.py", line 73, in getntacl xattr.XATTR_NTACL_NAME) Any idea? Bye
On 03/10/15 01:14, Carlos A. P. Cunha wrote:> Hi I'm with this problem? > Version: Samba 4.3 (4.2 upgrade) > S.O .: Ubuntu 4.14 > > samba-tool ntacl sysvolreset > open: error=2 (No such file or directory) > ERROR(runtime): uncaught exception - (-1073741823, 'Undetermined error') > File > "/opt/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", > line 175, in _run > return self.run(*args, **kwargs) > File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/ntacl.py", > line 218, in run > lp, use_ntvfs=use_ntvfs) > File > "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", > line 1619, in setsysvolacl > set_gpos_acl(sysvol, dnsdomain, domainsid, domaindn, samdb, lp, > use_ntvfs, passdb=s4_passdb) > File > "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", > line 1524, in set_gpos_acl > passdb=passdb) > File > "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", > line 1487, in set_dir_acl > setntacl(lp, path, acl, domsid, use_ntvfs=use_ntvfs, > skip_invalid_chown=True, passdb=passdb, service=service) > File "/opt/samba/lib/python2.7/site-packages/samba/ntacls.py", line > 154, in setntacl > smbd.set_nt_acl(file, security.SECINFO_OWNER | > security.SECINFO_GROUP | security.SECINFO_DACL | > security.SECINFO_SACL, sd, service=service) > > --------------------------------------------------- > > samba-tool ntacl sysvolcheck > ERROR(<type 'exceptions.TypeError'>): uncaught exception - (2, 'No > such file or directory') > File > "/opt/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", > line 175, in _run > return self.run(*args, **kwargs) > File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/ntacl.py", > line 249, in run > lp) > File > "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", > line 1733, in checksysvolacl > direct_db_access) > File > "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", > line 1684, in check_gpos_acl > domainsid, direct_db_access) > File > "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", > line 1628, in check_dir_acl > fsacl = getntacl(lp, path, direct_db_access=direct_db_access, > service=SYSVOL_SERVICE) > File "/opt/samba/lib/python2.7/site-packages/samba/ntacls.py", line > 73, in getntacl > xattr.XATTR_NTACL_NAME) > > > > > Any idea? > Bye >How did you install Samba ? It seems it cannot find the sysvol directory Rowland
On 03/10/15 15:40, Carlos A. P. Cunha wrote:> Samba has been installed as follows: > > ./configure --prefix=/opt/samba --enable-debug --enable-selftest > > He was with a Win 2003_R2 but now and only the samba. > >You do not really need '--enable-debug --enable-selftest' Run these commands: samba -V samba -b | grep [S]TATEDIR | awk '{print $NF}' What do they return ? and more to the point, is there a directory called 'sysvol' in the path that the last one should return. Have you altered smb.conf ? Rowland
On 03/10/15 16:03, Carlos A. P. Cunha wrote:> I compiled with these options for the wiki samba "recommended".You only require them if you are having major problems.> > samba -V > Version 4.3.0 > > samba -b | grep [S]TATEDIR | awk '{print $NF}' > /opt/samba/var/locks >OK, that looks correct. Have you altered smb.conf ? Rowland