我在我的 Ubuntu 服务器上安装了 Samba,但是配置步骤出现了这样的问题。
superuser@dww:~$ sudo samba-tool domain provision
Realm [DWW-JO.LOCAL]: DWW-JO.LOCAL
Domain [DWW-JO]: DWW-JO
Server Role (dc, member, standalone) [dc]: dc
DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]: BIND9_DLZ
Administrator password:
Retype password:
Sorry, passwords do not match.
Administrator password:
Retype password:
Looking up IPv4 addresses
Looking up IPv6 addresses
No IPv6 address will be assigned
ERROR(<type 'exceptions.IOError'>): uncaught exception - [Errno 2] No such file or directory: '/usr/share/samba/setup/ad-schema/MS-AD_Schema_2K8_R2_Attributes.txt'
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/domain.py", line 474, in run
nosync=ldap_backend_nosync, ldap_dryrun_mode=ldap_dryrun_mode)
File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 2080, in provision
schemadn=names.schemadn)
File "/usr/lib/python2.7/dist-packages/samba/schema.py", line 88, in __init__
setup_path('ad-schema/MS-AD_Schema_2K8_R2_Classes.txt'))
File "/usr/lib/python2.7/dist-packages/samba/ms_schema.py", line 275, in read_ms_schema
attr_ldif = __parse_schema_file(attr_file, "attributeSchema")
File "/usr/lib/python2.7/dist-packages/samba/ms_schema.py", line 261, in __parse_schema_file
f = open(filename, "rU")
如何解决?谢谢
Ubuntu Server 18.04 Samba 版本 4.10.2