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: 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. -- ------------------------- Bob Wooden of Donelson Trophy 615.885.2846 (main) www.donelsontrophy.com [1] "Everyone deserves an award!!" Links: ------ [1] http://www.donelsontrophy.com
More searching and I have found this however it did not connect to a solution: https://lists.samba.org/archive/samba/2013-December/177406.html Still searching . . . --- ------------------------- Bob Wooden of Donelson Trophy 615.885.2846 (main) www.donelsontrophy.com [1] "Everyone deserves an award!!" On 2015-02-15 21:07, Bob of Donelson Trophy wrote:> 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: > > 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. > > -- > > ------------------------- > > Bob Wooden of Donelson Trophy > > 615.885.2846 (main) > www.donelsontrophy.com [1] [1 [1]] > > "Everyone deserves an award!!" > > Links: > ------ > [1] http://www.donelsontrophy.com [1]Links: ------ [1] http://www.donelsontrophy.com
2015-02-16 4:07 GMT+01:00 Bob of Donelson Trophy <bob at donelsontrophy.net>:> > 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: >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' >Strange location for sysvol and what does tmpzhDFKI at that location? Regards, Marcel
Hum-m-m, yes, there is no file or directory by that name. I do not know enough about python to know how it generated that line "ERROR(<type 'exceptions.OSError'>): uncaught exception - [Errno 2] No such file or directory: '/home/samba/sysvol/sysvol/tmpzhDFKI' " There is no '/home/samba/sysvol/sysvol/tmpzhDFKI'. There is no "sysvol" directory after '/home/samba/sysvol/' when I "ls". root at dc01:~# ls -alh /home/samba/sysvol/ total 12K drwxr-xr-x 3 root root 4.0K Jan 24 08:29 . drwxr-xr-x 3 root root 4.0K Jan 24 08:29 .. drwxr-xr-x 3 root root 4.0K Jan 24 08:29 dts***m.lan Starting to look like a 'bug?' --- ------------------------- Bob Wooden of Donelson Trophy 615.885.2846 (main) www.donelsontrophy.com [1] "Everyone deserves an award!!" On 2015-02-16 07:06, Marcel de Reuver wrote:> 2015-02-16 4:07 GMT+01:00 Bob of Donelson Trophy <bob at donelsontrophy.net>: > >> 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: > > 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' > > Strange location for sysvol and what does tmpzhDFKI at that location? > > Regards, > MarcelLinks: ------ [1] http://www.donelsontrophy.com
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
Hi Bob, are you running 1 or 2 dc's atm. If 2DC's , did you use the sysvol repl script of me. check you path in /etc/samba/smb.conf on the DC(s) and set it to /home/samba/sysvol if you corrected this then restart samba on the DC's. and then rerun ( as root of with sudo ) samba-tool ntacl sysvolreset and i you have 2 DC's .. this : ls -alh /home/samba/sysvol/ looks correct. and if you used 2 DC's. check the following file /etc/cron.d/sysvol-sync you should see: /usr/bin/rsync -XAavz --log-file /var/log/sysvol-sync.log --delete-after -f\"+ */\" -f\"- *\" /home/samba/sysvol root@$DC2:/home/samba If this line was not correct like: ... -f\"- *\" /home/samba/sysvol root@$DC2:/home/samba/sysvol do the following, stop cron on DC1. login on DC2 and remove /home/samba/sysvol completly. /root/.unison/ remove the hash files. DC1. remove the hash files. !! /root/.unison/ Do this wrong and you and up with an empty sysvol !! so before removing anything please make a backup of you sysvols on BOTH DC's to be sure. Next week in having more time to improve the scripts to make sure its all more clear what to enter where. Louis>-----Oorspronkelijk bericht----- >Van: bob at donelsontrophy.net >[mailto:samba-bounces at lists.samba.org] Namens Bob of Donelson Trophy >Verzonden: maandag 16 februari 2015 14:50 >Aan: samba at lists.samba.org >Onderwerp: Re: [Samba] gpo update problem > > > >Hum-m-m, yes, there is no file or directory by that name. I do not know >enough about python to know how it generated that line "ERROR(<type >'exceptions.OSError'>): uncaught exception - [Errno 2] No such file or >directory: '/home/samba/sysvol/sysvol/tmpzhDFKI' " > >There is no '/home/samba/sysvol/sysvol/tmpzhDFKI'. There is no "sysvol" >directory after '/home/samba/sysvol/' when I "ls". > >root at dc01:~# ls -alh /home/samba/sysvol/ >total 12K >drwxr-xr-x 3 root root 4.0K Jan 24 08:29 . >drwxr-xr-x 3 root root 4.0K Jan 24 08:29 .. >drwxr-xr-x 3 root root 4.0K Jan 24 08:29 dts***m.lan > >Starting to look like a 'bug?' > >--- > >------------------------- > >Bob Wooden of Donelson Trophy > >615.885.2846 (main) >www.donelsontrophy.com [1] > >"Everyone deserves an award!!" > >On 2015-02-16 07:06, Marcel de Reuver wrote: > >> 2015-02-16 4:07 GMT+01:00 Bob of Donelson Trophy ><bob at donelsontrophy.net>: >> >>> 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: >> >> 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' >> >> Strange location for sysvol and what does tmpzhDFKI at that location? >> >> Regards, >> Marcel > > >Links: >------ >[1] http://www.donelsontrophy.com >-- >To unsubscribe from this list go to the following URL and read the >instructions: https://lists.samba.org/mailman/options/samba > >
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