# uname -a Linux raid1 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4 (2016-02-29) x86_64 GNU/Linux # cat /etc/debian_version 8.4
いつも通り、apt-get update && apt-get upgrade
したら、Samba がエラーを吐いて起動しなくなりました。
# dpkg -l | grep samba ii python-samba 2:4.2.10+dfsg-0+deb8u2 amd64 iF samba 2:4.2.10+dfsg-0+deb8u2 amd64 ii samba-common 2:4.2.10+dfsg-0+deb8u2 all ii samba-common-bin 2:4.2.10+dfsg-0+deb8u2 amd64 ii samba-dsdb-modules 2:4.2.10+dfsg-0+deb8u2 amd64 ii samba-libs:amd64 2:4.2.10+dfsg-0+deb8u2 amd64 ii samba-vfs-modules 2:4.2.10+dfsg-0+deb8u2 amd64 # /etc/init.d/samba stop # /etc/init.d/samba start Starting nmbd (via systemctl): nmbd.serviceJob for nmbd.service failed. See 'systemctl status nmbd.service' and 'journalctl -xn' for details. failed!
エラー メッセージにあるように systemctl status nmbd.service
と journalctl -xn
を試してみても、nmbd サービスが動いていないという状況が表示されるだけで解決の糸口はつかめず。
# smbd -i smbd version 4.2.10-Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2014 WARNING: Ignoring invalid value 'share' for parameter 'security' error opening config file '/etc/samba/smb.conf'
無効な値を無視したとの Warning を吐いているものの、「/etc/samba/smb.conf
を開けない」と言われても、ちゃんとファイルは存在しているし、ls /etc/samba/smb.conf
で確かに在る。SELinux が関係しているとの情報があったのですが、このサーバでは使用していません。
ダメもとで、/etc/samba/smb.conf
内にある Warning で指摘された share = security
をコメントアウトしてみます。
# smbd -i smbd version 4.2.10-Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2014 invalid permissions on directory '/var/cache/samba/msg': has 0755 should be 0700
あれ? なんかエラー内容が変わった!? 海外のフォーラムの情報を元に進めてみる。
# chmod 700 /var/cache/samba/msg # /etc/init.d/samba start
動いた! Samba 4.2 から何か変わったことが原因らしいが、その後追跡していません。