[samba-jp:22747] 【samba4】 サービス起動できません
三反田@ひむか流通ネットワーク
santanda @ himuka.ne.jp
2016年 8月 24日 (水) 18:01:50 JST
さんたんだです。
samba4の構築を行おうと、Sambaユーザ会内のソースを使って
インストールは成功しました。
なにせ、samba4は初ですので変更点の理解が少ないです・・・
サービスの起動が出来なくて四苦八苦しております。
ちなみにログ見て、/usr/local/etc/smb.confを削除してサービス起動
してもNGです。
samba3系では何事もなく起動できていたんですが・・・・・
環境)
OS:CentOS6.5 x64
samba:4.4.5
Server Role:standalone
以下は、samba-tool domain provision実行結果とログになります。
◆samba-tool domain provision実行結果
# /usr/local/samba/bin/samba-tool domain provision
Realm [HIMUKA.NE.JP]:
Domain [HIMUKA]:
Server Role (dc, member, standalone) [dc]: standalone
DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]:
DNS forwarder IP address (write 'none' to disable forwarding) [***.***.***.***]: none
Administrator password:
Retype password:
Looking up IPv4 addresses
Looking up IPv6 addresses
No IPv6 address will be assigned
Setting up secrets.ldb
Setting up the registry
Setting up the privileges database
Setting up idmap db
Setting up SAM db
Setting up sam.ldb partitions and settings
Setting up sam.ldb rootDSE
Pre-loading the Samba 4 and AD schema
Adding DomainDN: DC=HATTRI-TESTSV
Adding configuration container
Setting up sam.ldb schema
Setting up sam.ldb configuration data
Setting up display specifiers
Modifying display specifiers
Adding users container
Modifying users container
Adding computers container
Modifying computers container
Setting up sam.ldb data
Setting up well known security principals
Setting up sam.ldb users and groups
Setting up self join
Setting up sam.ldb rootDSE marking as synchronized
Fixing provision GUIDs
A Kerberos configuration suitable for Samba 4 has been generated at /usr/local/samba/private/krb5.conf
Once the above files are installed, your Samba4 server will be ready to use
Server Role: standalone server
Hostname: testsv
NetBIOS Domain: TESTSV
DNS Domain: himuka.ne.jp
DOMAIN SID: S-1-5-21-2150568759-3281614020-3627481196
◆/var/log/samba/log.%m の中身
[2016/08/24 17:48:40.335269, 0] ../source4/smbd/server.c:472(binary_smbd_main)
At this time the 'samba' binary should only be used for either:
'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
[2016/08/24 17:48:40.335759, 0] ../lib/util/become_daemon.c:111(exit_daemon)
STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
samba-jp メーリングリストの案内