ホームサーバの再構築
途中でどこまでやったのか忘れてしまったのと、
Ubuntu 12.04.2 LTS がリリースされていたので、
再インストール。
まずは、Windows 7機とファイル共有できるように samba 3.6の設定から。
設定のポイントを忘れてしまい、NTLM2 認証に失敗するので、 orz
http://do-gugan.com/~furuta/archives/2011/11/sambasmb236.html
を参考に再設定。
/etc/samba/smb.conf の設定例
[global]
# Character settings
dos charset = CP932
unix charset = UTF-8
display charset = UTF-8
# CIFS network parameters (X.Y.Z.* は適当な IP addr.)
workgroup = WORKGROUP
hosts allow = X.Y.Z. 127.
hosts deny = X.Y.Z.GATEWAY
max protocol = SMB2
unix extensions = no
# Authentication
security = user
encrypt passwords = true
passdb backend = tdbsam
map to guest = bad user
[homes]
comment = Home Directories
browseable = no
read only = yes
[tmp]
comment = Temporary directory
path = /tmp
browseable = yes
writable = yes
# read only = no
smb.conf を編集した後, terminal で
> pdbedit -a -u (user account)
でCIFS用ユーザアカウントを作成する。
smbd, nmbd を再起動し、Windows7 PC から接続を確認する。
【今回の動作確認環境】
Linux OS: Ubunutu x64 12.04.2 LTS
Windows PC: Windows 7 Home Premium SP1