smb.conf.default は 展開したディレクトリの /samba-3.0.28/examples/smb.conf.default に 存在します。
”samba-2.2.7b-ja-1.0” にて 運用していたもの そのままでも 最低限の 動作は可能なのですが、おさらいを やっておきましょう。
抜粋 と言うより 最初に”#”が有る 項目を 削除したものです。
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
# sed -e '/^#/d' smb.conf.default_usr-local-src-006_samba-samba-3.0.28-examples-cp [global] workgroup = MYGROUP /* workgroup = MSHOME */ server string = Samba Server /* server string = Samba %v */ security = user ; hosts allow = 192.168.1. 192.168.2. 127. load printers = yes ; printcap name = /etc/printcap ; printcap name = lpstat ; printing = cups ; guest account = pcguest log file = /usr/local/samba/var/log.%m /* log file = /usr/local/samba/log.%m */ max log size = 50 ; password server = <NT-Server-Name> ; realm = MY_REALM ; passdb backend = tdbsam ; include = /usr/local/samba/lib/smb.conf.%m ; interfaces = 192.168.12.2/24 192.168.13.2/24 ; local master = no ; os level = 33 /* os level = 1 */ ; domain master = yes ; preferred master = yes ; domain logons = yes ; logon script = %m.bat ; logon script = %U.bat ; logon path = \\%L\Profiles\%U ; wins support = yes ; wins server = w.x.y.z ; wins proxy = yes dns proxy = no /* dns proxy = No */ ; add user script = /usr/sbin/useradd %u ; add group script = /usr/sbin/groupadd %g ; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u ; delete user script = /usr/sbin/userdel %u ; delete user from group script = /usr/sbin/deluser %u %g ; delete group script = /usr/sbin/groupdel %g /* coding system = euc */ /* client code page = 932 */ /* encrypt passwords = Yes */ /* map to guest = Bad User */ /* socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 */ [homes] comment = Home Directories /* comment = %U's Home directory */ browseable = no /* browseable = no */ writable = yes /* read only = no */ ; [netlogon] ; comment = Network Logon Service ; path = /usr/local/samba/lib/netlogon ; guest ok = yes ; writable = no ; share modes = no ;[Profiles] ; path = /usr/local/samba/profiles ; browseable = no ; guest ok = yes [printers] comment = All Printers path = /usr/spool/samba browseable = no guest ok = no writable = no printable = yes ;[tmp] ; comment = Temporary file space ; path = /tmp ; read only = no ; public = yes ;[public] ; comment = Public Stuff ; path = /home/samba ; public = yes ; writable = yes ; printable = no ; write list = @staff ;[fredsprn] ; comment = Fred's Printer ; valid users = fred ; path = /homes/fred ; printer = freds_printer ; public = no ; writable = no ; printable = yes ;[fredsdir] ; comment = Fred's Service ; path = /usr/somewhere/private ; valid users = fred ; public = no ; writable = yes ; printable = no ;[pchome] ; comment = PC Directories ; path = /usr/pc/%m ; public = no ; writable = yes ;[public] ; path = /usr/somewhere/else/public ; public = yes ; only guest = yes ; writable = yes ; printable = no ;[myshare] ; comment = Mary's and Fred's stuff ; path = /usr/somewhere/shared ; valid users = mary fred ; public = no ; writable = yes ; printable = no ; create mask = 0765 /*[nyankichi] */ /* path = /home/nyan/ntarou */ /* public = yes */ /* writable = yes */ /* printable = no */ /* create mask = 777 */ /* directory mask = 777 */
”samba-2.2.7b-ja-1.0”にて運用していたものを 追記してみました。 同じ 内容の ものも 存在します。ではこれを 元にして新しく 作成してゆきます。
にゃんたろう 拝!
2008年 1月23日 (水) 21:05:29 JST