Web lists-archives.com

Re: [Samba] sysvolreset - open: error=40 (Too many levels of symbolic links)




Hi,

another tipp for further debugging. Just run the sysvolreset in debug mode to see on which file it has problems to reset the permissions:

samba-tool ntacl sysvolreset -d 10 2>&1 | grep "called for file"

Then check the last listed file if this might be a symlink loop. If not just run it without grep and maybe a lower debug level of 3-4 to see a more detailed error message why it crashes.

Kind regards
Sören

Von: Elias Pereira via samba
Gesendet: Mittwoch, 14. März, 13:53
Betreff: Re: [Samba] sysvolreset - open: error=40 (Too many levels of symbolic links)
An: samba@xxxxxxxxxxxxxxx


Hello Louis, I use your apt for samba. Great works btw!! :D root@dc3:/etc/samba# samba -V Version 4.7.3-Debian root@dc3:/etc/samba# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.2 (stretch) Release: 9.2 Codename: stretch Did you upgrade, if so, from .. To ... Samba version ? No upgrades. And why was running : samba-tool ntacl sysvolreset needed? I tried the sysvolreset, as I applied a gpo to a printer deploy, but it did not appear to the user. I did as I always did and it worked, but this time it failed. On Wed, Mar 14, 2018 at 9:32 AM, L.P.H. van Belle via samba < samba@xxxxxxxxxxxxxxx> wrote: > Hai, > > No, i have not seen the (Too many levels of symbolic links) before.. > > Samba version ? Running on OS ? > That might be very handy to know. > > Did you upgrade, if so, from .. To ... Samba version ? > > And why was running : samba-tool ntacl sysvolreset needed? > > > > Greetz, > > Louis > > > > -----Oorspronkelijk bericht----- > > Van: samba [mailto:samba-bounces@xxxxxxxxxxxxxxx] Namens > > Elias Pereira via samba > > Verzonden: woensdag 14 maart 2018 13:24 > > Aan: samba > > Onderwerp: [Samba] sysvolreset - open: error=40 (Too many > > levels of symbolic links) > > > > hi folks, > > > > After run *samba-tool ntacl sysvolreset *the below error occurs. I not > > remember of make any modification directly on the server. I > > only manager > > via rsat. > > > > root@dc3:/etc/samba# samba-tool ntacl sysvolreset > > *open: error=40 (Too many levels of symbolic links)* > > ERROR(runtime): uncaught exception - (-1073741823, > > '{Operation Failed} The > > requested operation was unsuccessful.') > > File > > "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line > > 176, in _run > > return self.run(*args, **kwargs) > > File > > "/usr/lib/python2.7/dist-packages/samba/netcmd/ntacl.py", line 239, > > in run > > lp, use_ntvfs=use_ntvfs) > > File > > "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line > > 1600, in setsysvolacl > > passdb=s4_passdb, service=SYSVOL_SERVICE) > > File "/usr/lib/python2.7/dist-packages/samba/ntacls.py", > > line 162, in > > setntacl > > smbd.set_nt_acl(file, security.SECINFO_OWNER | > > security.SECINFO_GROUP | > > security.SECINFO_DACL | security.SECINFO_SACL, sd, service=service) > > > > root@dc3:/etc/samba# samba-tool dbcheck --cross-ncs > > --reset-well-known-acls > > --fix --yes > > Checking 8601 objects > > Checked 8601 objects (0 errors) > > > > # Global parameters > > [global] > > netbios name = DC3 > > realm = CAMPUS.EXAMPLE.INTRA > > server services = s3fs, rpc, nbt, wrepl, ldap, cldap, > > kdc, drepl, > > winbindd, ntp_signd, kcc, dnsupdate > > workgroup = CAMPUS > > server role = active directory domain controller > > idmap_ldb:use rfc2307 = yes > > ldap server require strong auth = no > > > > [netlogon] > > path = /var/lib/samba/sysvol/campus.example.intra/scripts > > read only = No > > > > [sysvol] > > path = /var/lib/samba/sysvol > > read only = No > > > > Has anyone ever had this problem? > > > > -- > > Elias Pereira > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/options/samba > > > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > -- Elias Pereira -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba