# cd ../examples
# cp smb.conf.default /usr/local/samba/lib/smb.conf
# cd /usr/local/samba/lib
# vi smb.conf
[ global ] の設定
ワークグループ名は Mystery
サーバーストリングは Mystery
プリンタは SYSV として使用する
ログファイルは /var/adm/samba に作成
Microsoft Windows95/98/NT4.0 のパスワードの暗号化に対応
パスワードのチェックレベルは 8
ファイル名の大文字小文字の扱いを Microsoft Windows と同じように
漢字コードは EUC
workgroup = Mystery
server string = Mystery Server
load printers = yes
printcap name = lpstat
printing = sysv
guest account = nobody
log file = /var/adm/samba/log.%m
max log size = 50
security = user
encrypt passwords = yes
socket options = TCP_NODELAY
dns proxy = no
password level = 8
preserve case = yes
short preserve case = yes
case sensitive = no
client code page = 932
coding system = euc
[ printers ] の設定
スプールディレクトリは /var/spool/samba
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
[ public ] の設定
/home/guest をパブリックのディレクトリにする
path = /home/guest
public = yes
only guest = yes
writable = yes
printable = no
# ../bin/testparm
Load smb config files from /usr/local/samba/lib/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[public]"
Loaded services file OK.
Press enter to see a dump of your service definitions