* Samba [#c38f90bd]

[[12/2>すぎむらの応援日記。/2007-12-02#hf0a08b3]] に
困っていた Samba の問題ですが、なんとか解決しました。
パスワード認証の方式のデフォルトが変わったからみたいです。

まず、emerge のときの警告。
クライアントを再起動しないといけなかった、という。

 * If you're upgrading from 3.0.24 or earlier, please make sure to
 * restart your clients to clear any cached information about the server.
 * Otherwise they might not be able to connect to the volumes.

ユーザの認証は smbpasswd から tdbsam にするということで、
この際なのでユーザの認証は smbpasswd から tdbsam にするということで、
pdbedit でユーザを作成。
OpenLDAP を使ってみようかとも思いましたが、
一気にいろいろやっても難しいので。

 # pdbedit -a sugimura
 ...

/etc/samba/smb.conf を設定。明示的に tdbsam を指定しています。


 [global]
         dos charset = CP932
         unix charset = EUCJP-MS
         display charset = EUCJP-MS
         workgroup = MYGROUP
         interfaces = 192.168.1.3/24
         load printers = No
         dns proxy = No
         ldap ssl = no
         read only = No
         passdb backend = tdbsam
         hosts allow = 192.168.1., 127.
 
 [homes] 
         comment = home directory
         path = /home/%u
 
 [opt]   
         comment = optional
         path = /opt
         public = yes
         only guest = yes
         writable = yes
         printable = no

あとは samba を起動。無事つながりました。良かった〜

 ml110 ~ # /etc/init.d/samba start
  * samba -> start: smbd ...                                               [ ok ]
  * samba -> start: nmbd ...                                               [ ok ]

----
#comment


トップ   差分 履歴 リロード   一覧 検索 最終更新   ヘルプ   最終更新のRSS