[Samba] gpo update problem

Denis Cardon denis.cardon at tranquil-it-systems.fr
Mon Feb 16 07:16:18 MST 2015


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



More information about the samba mailing list