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

Elias Pereira empbilly at gmail.com
Wed Mar 14 12:23:54 UTC 2018

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 at 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
    smbd.set_nt_acl(file, security.SECINFO_OWNER | security.SECINFO_GROUP |
security.SECINFO_DACL | security.SECINFO_SACL, sd, service=service)

root at dc3:/etc/samba# samba-tool dbcheck --cross-ncs --reset-well-known-acls
--fix --yes
Checking 8601 objects
Checked 8601 objects (0 errors)

# Global parameters
        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

        path = /var/lib/samba/sysvol/campus.example.intra/scripts
        read only = No

        path = /var/lib/samba/sysvol
        read only = No

Has anyone ever had this problem?

Elias Pereira

More information about the samba mailing list