Complete text -- "Samba on Leopard"

13 November

Samba on Leopard

Mac OS X Server¤ÎLeopard¤¬¤ª¤â¤·¤í¤½¤¦¤Ê¤Î¤Ç¹ØÆþ¤·¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤ß¤Þ¤·¤¿¡£

Mac OS X Server v10.5 10¥¯¥é¥¤¥¢¥ó¥È¡ï57,800-¤È¤¤¤¦¤Î¤òÇã¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢
¡Ö¥¯¥é¥¤¥¢¥ó¥È¿ô¤ÎÀ©¸Â¤Ï¡¢Æ±»þ¤Ë¥Õ¥¡¥¤¥ë¶¦Í­²Äǽ¤ÊMac¤ª¤è¤ÓWindows¥¯¥é¥¤¥¢¥ó¥È¿ô¤Î¤ß¤ËŬÍѤµ¤ì¤Þ¤¹¡£ ¡×
¤È¤¤¤¦Ê¸¾Ï¤¬µ¤¤Ë¤Ê¤Ã¤ÆSamba¤«OpenLDAP¤ÇÀ©¸Â¤«¤±¤Æ¤¤¤ë¤Î¤«¤È
¤ª¤â¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢¤½¤¦¤Ç¤â¤Ê¤¤¤è¤¦¤Ç¤¹¡£

¥æ¡¼¥¶¤ò£±£µ¤¯¤é¤¤ÅÐÏ¿¤·¤Æ¤â¥¨¥é¡¼¤Ë¤Ê¤ê¤Þ¤»¤ó¤Ç¤·¤¿¤·¡¢smbclient¤Ç£²£°¥»¥Ã¥·¥ç¥ó¤¯¤é¤¤Ä¥¤Ã¤Æ¤ß¤¿¤Î¤Ç¤¹¤¬¡¢Âç¾æÉפǤ¹¡£
¡Ê£±£°¥¯¥é¥¤¥¢¥ó¥È°Ê¾å¥æ¥Ë¡¼¥¯¤ËÄ¥¤ë¤È¤À¤á¤Ê¤Î¤«¤Ê¡©¡Ë

¤Ç¤âobey pam restrictions = yes¤È¤·¤Æ¤¤¤Æ

# cat /etc/pam.d/samba
# samba: service ACL account management support
account required pam_sacl.so sacl_service=smb allow_trustacct
session required pam_permit.so

¤È¤Ê¤Ã¤Æ¤¤¤ë¤Î¤Ç¡¢¤³¤Îpam_permit.so ¤Ç²¿¤«¤ä¤Ã¤Æ¤¤¤ë¤Î¤«¤â¤·¤ì¤Þ¤»¤ó¡£


´¶¿´¤·¤¿¤Î¤Ï¡¢¤µ¤Ã¤½¤¯usershareµ¡Ç½¤ò»È¤Ã¤Æ¤¤¤Æ¡¢¶¦Í­¤òÄɲ䷤Ƥâsmb.conf¤ÏÊѹ¹¤µ¤ì¤º¡¢
usershare path = /var/samba/shares
¤Ë¶¦Í­¤ÎÀßÄ꤬Äɲ䵤ì¤Þ¤¹¡£

²Ã¤¨¤Æ
usershare allow full config = yes
¤È¤¤¤¦ÀßÄê¤Ï¥É¥­¥å¥á¥ó¥È¤Ë¤Ê¤¤¤Î¤ÇÆȼ«³ÈÄ¥¤«¤â¤·¤ì¤Þ¤»¤ó¡£

¤¢¤È¥µ¡¼¥Ð̾¤È¤«¥æ¡¼¥¶¥Û¡¼¥àµ¡Ç½¤ÎÀßÄê¤â/etc/smb.conf¤ÏÊѹ¹¤µ¤ì¤º
include = /var/run/smb.conf
¤Î¥Õ¥¡¥¤¥ë¤ËÀßÄꤵ¤ì¤ë¤ß¤¿¤¤¤Ç¤¹¡£

ÀßÄê¥Õ¥¡¥¤¥ë¤Ï¤È¤Æ¤â»²¹Í¤Ë¤Ê¤ë¤Î¤Ç°Ê²¼¤ËŽ¤êÉÕ¤±¤Þ¤¹¡£


----
; Configuration file for the Samba software suite.
;
============================================================================
;
; For the format of this file and comprehensive descriptions of all the
; configuration option, please refer to the man page for smb.conf(5).
;
; The following configuration should suit most systems for basic usage and
; initial testing. It gives all clients access to their home directories and
; allows access to all printers specified in /etc/printcap.

; BEGIN required configuration

; Parameters inside the required configuration block should not be altered.
; They may be changed at any time by upgrades or other automated processes.
;
; Site-specific customizations will only be preserved if they are done
; outside this block. If you choose to make customizations, it is your
; own responsibility to verify that they work correctly with the supported
; configuration tools.

[global]
debug pid = yes
log level = 1
server string = Mac OS X

printcap name = cups
printing = cups

encrypt passwords = yes
use spnego = yes

passdb backend = odsam

idmap domains = default
idmap config default: default = yes
idmap config default: backend = odsam
idmap alloc backend = odsam
idmap negative cache time = 5

map to guest = Bad User
guest account = nobody

unix charset = UTF-8-MAC
display charset = UTF-8-MAC
dos charset = 437

vfs objects = darwinacl,darwin_streams

; Don't become a master browser unless absolutely necessary.
os level = 2
domain master = no

; For performance reasons, set the transmit buffer size
; to the maximum and enable sendfile support.
max xmit = 131072
use sendfile = yes

; The darwin_streams module gives us named streams support.
stream support = yes
ea support = yes

; Enable locking coherency with AFP.
darwin_streams:brlm = yes

; Core files are invariably disabled system-wide, but attempting to
; dump core will trigger a crash report, so we still want to try.
enable core files = yes

; Configure usershares for use by the synchronize-shares tool.
usershare max shares = 1000
usershare path = /var/samba/shares
usershare owner only = no
usershare allow guests = yes
usershare allow full config = yes

; Filter inaccessible shares from the browse list.
com.apple:filter shares by access = yes

; Check in with PAM to enforce SACL access policy.
obey pam restrictions = yes

; Pull in system-wide preference settings. These are managed by
; synchronize-preferences tool.
include = /var/run/smb.conf

[printers]
comment = All Printers
path = /tmp
printable = yes
guest ok = no
create mode = 0700
writeable = no
browseable = no

; Site-specific parameters can be added below this comment.
; END required configuration.
-------------------------------

----
#VERSION 3
path=/Groups
comment=Groups
usershare_acl=S-1-1-0:F
guest ok=yes
inherit permissions=no
directory mask=0755
strict locking=no
create mask=0644
-------------------------------
18:26:21 | sambamaster | | TrackBacks
Comments
¥³¥á¥ó¥È¤¬¤¢¤ê¤Þ¤»¤ó
Add Comments
:

:

¥È¥é¥Ã¥¯¥Ð¥Ã¥¯