[Samba] gpo update problem

Bob of Donelson Trophy bob at donelsontrophy.net
Mon Feb 16 08:08:51 MST 2015


 

The path for sysvol on my smb.conf file was incorrect. Why, I do not
know. 

I have now corrected it however, now I am getting: 

root at dc01:~# samba-tool ntacl sysvolcheck
ERROR(<type 'exceptions.TypeError'>): uncaught exception - (2, 'No such
file or directory')
 File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line
175, in _run
 return self.run(*args, **kwargs)
 File "/usr/lib/python2.7/dist-packages/samba/netcmd/ntacl.py", line
249, in run
 lp)
 File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py",
line 1726, in checksysvolacl
 direct_db_access)
 File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py",
line 1662, in check_gpos_acl
 direct_db_access=direct_db_access, service=SYSVOL_SERVICE)
 File "/usr/lib/python2.7/dist-packages/samba/ntacls.py", line 73, in
getntacl
 xattr.XATTR_NTACL_NAME) 

And then: 

root at dc01:~# samba-tool ntacl sysvolreset
open: error=2 (No such file or directory)
ERROR(runtime): uncaught exception - (-1073741823, 'Undetermined error')
 File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line
175, in _run
 return self.run(*args, **kwargs)
 File "/usr/lib/python2.7/dist-packages/samba/netcmd/ntacl.py", line
218, in run
 lp, use_ntvfs=use_ntvfs)
 File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py",
line 1612, in setsysvolacl
 set_gpos_acl(sysvol, dnsdomain, domainsid, domaindn, samdb, lp,
use_ntvfs, passdb=s4_passdb)
 File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py",
line 1505, in set_gpos_acl
 use_ntvfs=use_ntvfs, skip_invalid_chown=True, passdb=passdb,
service=SYSVOL_SERVICE)
 File "/usr/lib/python2.7/dist-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) 

I have restarted the machine and there is no change. Have I completely
broken python? 
---

-------------------------

Bob Wooden of Donelson Trophy

615.885.2846 (main)
www.donelsontrophy.com [2]

"Everyone deserves an award!!"

On 2015-02-16 08:16, Denis Cardon wrote: 

> Hi Bob,
> 
>> I have setup 'profiles' and 'home share' per the instructions on Samba wiki. That seemed to go fine. When I moved on to 'folder re-direction' I tried to open GPO management on my W7 client and received a "User policy could not be updated successfully . . ." on the windows CP console. Started googling the error and ran into "samba-tool ntacl sysvolcheck" so, I ran it and got this:
> 
> what do you have for share path in your sysvol share?
> 
> [sysvol]
> path = /usr/local/samba/var/locks/sysvol
> read only = No
> 
> The path directory should exists and have sensible rights. There error you have tells that you have no such directory (and for the tmp file created, it looks like normal if the directory does not exists, I changed the sysvol path to garbage on a test install and got the same error message).
> 
> Cheers,
> 
> Denis
> 
>> root at dc01:~# samba-tool ntacl sysvolcheck ERROR(<type 'exceptions.TypeError'>): uncaught exception - (2, 'No such file or directory') File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/samba/netcmd/ntacl.py", line 249, in run lp) File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 1717, in checksysvolacl fsacl = getntacl(lp, dir_path, direct_db_access=direct_db_access, service=SYSVOL_SERVICE) File "/usr/lib/python2.7/dist-packages/samba/ntacls.py", line 73, in getntacl xattr.XATTR_NTACL_NAME) I see "py" which is python so, I am scratching my head. I ran: root at dc01:~# samba-tool ntacl sysvolreset ERROR(<type 'exceptions.OSError'>): uncaught exception - [Errno 2] No such file or directory: '/home/samba/sysvol/sysvol/tmpzhDFKI' File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File
"/usr/lib/python2.7/dist-packages/samba/netcmd/ntacl.py", line 218, in run lp, use_ntvfs=use_ntvfs) File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 1539, in setsysvolacl file = tempfile.NamedTemporaryFile(dir=os.path.abspath(sysvol)) File "/usr/lib/python2.7/tempfile.py", line 454, in NamedTemporaryFile (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags) File "/usr/lib/python2.7/tempfile.py", line 235, in _mkstemp_inner fd = _os.open(file, flags, 0600) Anyone got an idea what this means? Maybe I am running the command incorrectly? But, I don't think so.
> 
> -- 
> Denis Cardon
> Tranquil IT Systems
> Les Espaces Jules Verne, bâtiment A
> 12 avenue Jules Verne
> 44230 Saint Sébastien sur Loire
> tel : +33 (0) 2.40.97.57.55
> http://www.tranquil-it-systems.fr [1]
 

Links:
------
[1] http://www.tranquil-it-systems.fr
[2] http://www.donelsontrophy.com


More information about the samba mailing list