# workgroup = NT µµ¸ÞÀÎ À̸§ ¶Ç´Â ¿öÅ©±×·ì À̸§
workgroup = 11ÀÚ·á½Ç
# ¼³¸í : À©9x/NTÀÇ ³×Æ®¿÷ũȯ°æ¿¡
³ªÅ¸³ ÀÛ¾÷±×·ì¸íÀÔ´Ï´Ù.
# server string Àº ¶õ NT ¼³¸í Çʵå¿Í °°Àº °ÍÀÔ´Ï´Ù.
server string = "»êÀ̲¿
¸®´ª½º »ï¹Ù¼¹ö"
# ¼³¸í : ¸®´ª½º¹Ú½º¿¡ ´ëÇÑ ¼³¸íÀ»
Àû¾î³õ¾Ò½À´Ï´Ù.
# °³Àο¡ ¸Â°Ô ¼³Á¤¹Ù¶÷.
# Ŭ¶óÀ̾ðÆ® ÄÚµå ÆäÀÌÁö (Çѱ¹¾î = 949)
client code page = 949
# ÀÌ ¿É¼ÇÀº º¸¾È°ú °ü·ÃÇÏ¿© Áß¿äÇÑ °ÍÀÔ´Ï´Ù. ÀÌ
¿É¼ÇÀ» ÅëÇØ ¿©·¯ºÐÀÇ ±Ù°Å¸®
# ³×Æ®¿÷¿¡ Àִ ȣ½ºÆ®¿¡°Ô¸¸ Á¢±ÙÀ» Çã¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.
# ´ÙÀ½ ¿¹´Â 2 °³ÀÇ C Ŭ·¡½º ³×Æ®¿÷°ú "loopback" ÀÎÅÍÆäÀ̽º¿¡
´ëÇؼ¸¸
# Á¢±ÙÀ» Çã¿ëÇÏ°í ÀÖ½À´Ï´Ù. ¹®¹ý ¿¹´Â smb.conf
¸ÇÆäÀÌÁö¸¦ Âü°íÇϽñ⠹ٶø´Ï´Ù.
hosts allow = 210.123.59. 210.123.58. 210.123.57. 210.123.56. 210.123.55. 210.123.55. 210.123.54. 210.123.52. 210.123.51. 210.123.49. 127.
# ¼³¸í : À§´Â Á¢¼Ó°¡´ÉÇÑ CŬ·¡½º
È£½ºÆ®ÀÌ°í, µÚ¿¡ dot(.) ÁÖÀÇ
# ÀÚ¼¼ÇÑ ¹®¹ý³»¿ëÀº /usr/man/smb.conf(5)
ÆÄÀÏÀ» Âü°í.
# ÇÁ¸°ÅÍ ¼³Á¤À» °³º°ÀûÀ¸·Î ÇÏÁö ¾Ê°í ÀÚµ¿À¸·Î ÇÁ¸°ÅÍ ¸ñ·ÏÀ»
Æ÷ÇÔ½ÃÅ°±æ
# ¿øÇÑ´Ù¸é ´ÙÀ½ ¿É¼ÇÀ» »ç¿ëÇÕ´Ï´Ù.
# printcap ¿¡¼ Á¤ÀÇÇÑ ÇÁ¸°ÅÍ ¸ñ·ÏÀÌ ÀÚµ¿À¸·Î µî·ÏµË´Ï´Ù.
# load printers = no À̸é ÇϳªÇϳª Á¤ÇØÁÖ¼Å¾ß ÇÕ´Ï´Ù.
load printers = yes
# printcap ÆÄÀÏÀÇ À§Ä¡¸¦ »õ·Ó°Ô ÁöÁ¤ÇÏ°í ½ÍÀ» ¶§ »ç¿ëÇϽʽÿÀ.
; printcap name = /etc/printcap
# SystemV ½Ã½ºÅÛ¿¡¼´Â printcap name À» lpstat À¸·Î ÇØÁÖ¸é
SystemV ½ºÇ®
# ½Ã½ºÅÛÀ¸·ÎºÎÅÍ ÇÁ¸°ÅÍ ¸ñ·ÏÀ» ÀÚµ¿À¸·Î ¾ò°Ô ÇØÁÝ´Ï´Ù.
; printcap name = lpstat
# ¿©·¯ºÐÀÇ ÇÁ¸°Æà ½Ã½ºÅÛÀÌ Ç¥ÁØ¿¡¼ ¹þ¾î³ °ÍÀÌ ¾Æ´Ï¶ó¸é
´ÙÀ½ ¿É¼ÇÀÇ ÁÖ¼®À»
# Ç® ÇÊ¿ä°¡ ¾ø½À´Ï´Ù. ÇöÀç Áö¿øÇÏ°í ÀÖ´Â ÇÁ¸°Æ®
½Ã½ºÅÛÀº
# bsd, sysv, plp, lprng, aix, hpux, qnx µîÀÔ´Ï´Ù.
; printing = bsd
# ¼Õ´Ô »ç¿ëÀÚ¸¦ Çã°¡ÇÏ°í ½ÍÀ» ¶§´Â ´ÙÀ½ ÇàÀÇ ÁÖ¼®À» Ç®¾îÁÝ´Ï´Ù.
# nobody °¡ ¾Æ´Ñ °æ¿ì¿¡´Â /etc/passwd Ç׸ñ¿¡ ¼³Á¤ÇÑ ¼Õ´Ô
»ç¿ëÀÚ °èÁ¤À» Ãß°¡
# ÇØ¾ß ÇÕ´Ï´Ù.
# useradd ¸í·ÉÀ¸·Î ¼³Á¤ÇϽʽÿÀ.
guest account = pcguest
# ¼³¸í : À§ÀÇ ¼³Á¤Àº ±âº»°ª¿¡ ¾Õ¿¡
ÁÖ¼®(;)À» Á¦°ÅÇÑ »óÅÂÀÔ´Ï´Ù.
# /etc/smbusers ÆÄÀÏÀ» º¸½Ã¸é
# nobody = guest pcguest smbguest
# 3°³ÀÇ nobody °èÁ¤ÀÌ ÀÖ½À´Ï´Ù.
# Áï ÀÌ Áß¿¡¼ ÇÑ°³¸¦ À§¿Í °°ÀÌ
¼³Á¤ÇÏ°í ÁÖ¼®Á¦°ÅÇϸé
# À©9x/NT¿¡¼ ³×Æ®¿÷Å©·Î°í¿ÂÇÑ
¸ðµç users(¿©±â¿¡¼´Â pcguest ·Î °£ÁÖ)¿¡°Ô
# ¾Æ·¡ °øÀ¯Æú´õ¿¡ guest ±ÇÇÑÀ»
ÁØ µð·ºÅ丮¿¡´Â Á¢±ÙÇÒ ¼ö ÀÖ½À´Ï´Ù.
# ´Ù¸¸ À§ÀÇ ¿¹¶ó¸é ¸®´ª½º¹Ú½º¿¡¼
root°¡ adduser pcguest ¸í·ÉÀ¸·Î
# "pcguest" ¶ó´Â °èÁ¤À» ¸¸µé¾î
Áà¾ßÇÏ°í passwd´Â ÀÔ·ÂÇÏÁö ¾Ê¾Æ¾ß ÇÑ´Ù.
# º¸¾È¿¡ ½É°¢ÇÑ ¹®Á¦¸¦ ÁÙ¼ö ÀÖÀ¸¹Ç·Î
Áß¿äÇÑ µð·ºÅ丮¿¡ °øÀ¯µð·ºÅ丮·Î ¸¸µéÁö ¸»°Í.
# º» ¿¹Á¦´Â "11ÀÚ·á½Ç"À̶ó´Â Ư¼ö¼º¶§¹®¿¡
À©9x/NTÀÇ ¸ðµç À¯Àú¿¡°Ô
# ƯÁ¤µð·ºÅ丮¿¡ ÇÑÇÏ¿© Àб⠹×
¾²±â ±ÇÇÑÀ» ÁÖ¾ú´Ù.
# ´ÙÀ½Àº »ï¹Ù·Î ÇÏ¿©±Ý Àڽſ¡ Á¢¼ÓÇϴ ȣ½ºÆ® º°·Î °³º°ÀûÀÎ
±â·Ï ÆÄÀÏÀ»
# ¸¸µéµµ·Ï Áö½ÃÇÕ´Ï´Ù.
# "/var/log/samba/log.Á¢±ÙÈ£½ºÆ®À̸§"°ú °°Àº ÆÄÀϸíÀ»
°¡Áý´Ï´Ù.
# %m Àº »ï¹Ù ¼³Á¤¿¡¼ »ç¿ëµÇ´Â Ư¼öÇÑ º¯¼öÀÔ´Ï´Ù.
log file = /var/log/samba/log.%m
# ·Î±× ÆÄÀÏ Å©±âÀÇ »óÇѼ±À» Kb ´ÜÀ§·Î ¼³Á¤ÇÕ´Ï´Ù.
max log size = 50
# º¸¾È ¸ðµåÀÔ´Ï´Ù. ´ëºÎºÐÀÇ »ç¶÷µé¿¡°Õ user ·¹º§ÀÇ
º¸¾ÈÀÌ ¸Â½À´Ï´Ù.
# ÀÚ¼¼ÇÑ ³»¿ëÀº security_level.txt ¹®¼¸¦ Âü°íÇϽʽÿÀ.
# Âü°í·Î user ´Â À¯´Ð½º °èÁ¤À̸§/Æнº¿öµå ¹æ½ÄÀÇ º¸¾È
µî±ÞÀ̸ç
# share´Â ¿öÅ©±×·ì Æ÷ À©µµ¿ìÁî(WfW)¿Í À©µµ95ÀÇ ±âº» ¸ðµåÀÔ´Ï´Ù.
# serverÀÇ °æ¿ì¿¡´Â ÀÎÁõÀ» À§ÇØ NT ¼¹ö°¡ ÇÊ¿äÇÕ´Ï´Ù.
; security = user
# +++++++++++++++++++++++++++++++++
security = share
# ¼³¸í : share ·Î ¹Ù²Ù¾î¾ß À©9x/NTÀÇ
¸ðµç À¯ÀúµéÀÌ Á¢¼ÓÇÒ ¼ö ÀÖÀ½.
# user ¿É¼ÇÀº ¸®´ª½º¹Ú½º°èÁ¤°ú
À©9x/NTÀÇ °èÁ¤ÀÌ °°Àº °æ¿ì¸¸
# Á¢¼ÓÇÒ ¼ö ÀÖ´Ù.
# À§ÀÇ share¿É¼ÇÀ¸·Î ¸®´ª½º¹Ú½ºÀÇ
ÀÚ½ÅÀÇ °èÁ¤ÀÎ µð·ºÅ丮·Î
# Á¢±ÙÇϱâ À§Çؼ´Â À©9x/NTÀÇ °èÁ¤À»
¸®´ª½º¹Ú½ºÀÇ °èÁ¤°ú
# µ¿ÀÏÇÏ°Ô ·Î±×¿ÂÇÑ ´ÙÀ½ ¸®´ª½º¹Ú½º·Î
Á¢¼ÓÇÒ ¼ö ÀÖ´Ù.
# security = server ÀÎ °æ¿ì¿¡¸¸ Æнº¿öµå ¼¹ö¸¦ ¼³Á¤ÇÕ´Ï´Ù.
; password server = <NT ¼¹ö À̸§>
# Æнº¿öµå ·¹º§¿¡¼´Â ´ë¼Ò¹®ÀÚ ¸ðµç Á¶ÇÕ¿¡ ´ëÇÏ¿© _n_
°³ÀÇ ¹®ÀÚ·Î ÀÌ·ïÁø
# Æнº¿öµå¸¦ »ç¿ëÇϵµ·Ï ÇÕ´Ï´Ù.
; password level = 8
# Æнº¿öµå ¾Ïȣȸ¦ »ç¿ëÇÏ°í ½ÍÀ» ¶§°¡ ÀÖÀ» °Ì´Ï´Ù.
»ï¹Ù ¹®¼ Áß¿¡¼
# ENCRYPTION.txt, Win95.txt, WinNT.txt ¸¦ ²À Àо½Ã±â
¹Ù¶ø´Ï´Ù.
# ÀÌ ¹®¼¸¦ Âø½ÇÈ÷ ÀÐÁö ¾ÊÀº »óÅ¿¡¼ ´ÙÀ½ ¿É¼ÇÀ» ¼³Á¤ÇÏÁö
¸¶½Ê½Ã¿À.
# À©µµ¿ìÁîNT 4.0 ¼ºñ½º ÆÑ 3 ¹ø ÀÌ»óÀÎ ½Ã½ºÅÛ¿¡¼´Â Æнº¿öµå
¾ÏȣȰ¡
# ÇÊ¿äÇÕ´Ï´Ù.
encrypt passwords = yes
smb passwd file = /etc/smbpasswd
# ÁÖ¼®Á¦°ÅÇßÀ½.(À©98¿¡¼ ÀÚ½ÅÀÇ
°èÁ¤¿¡ Á¢¼ÓÇϱâ À§Çؼ)
# ¼öÁ¤ÈÄ ´ÙÀ½°ú °°ÀÌ °èÁ¤À» ÁÖ¾î¾ß
ÇÑ´Ù.
# # smbadduser san2:san2 <---------1¹ø
# # smbpasswd san2 <--------2¹ø
# # New password : ********
# # Retype : ********
# #
# 1¹ø¿¡¼ ¾ÕÀÇ 'san2'´Â ¸®´ª½º
°èÁ¤ÀÌ°í µÚÀÇ 'san2'´Â À©µµ¿ì »ç¿ëÀÚÀÌ´Ù.
# 2¹øÀº ¾ÏÈ£¸¦ ¼³Á¤ÇÏ´Â ¹ý
# À§¿Í °°Àº °æ¿ì À©µµ¿ì¿¡¼ »ç¿ëÀÚ¸¦
'san2'·Î ·Î°í¿ÂÇϸé
# »ï¹Ù¿¡¼ ÀÚ½ÅÀÇ °èÁ¤ÀÌ º¸ÀδÙ.........
#
# À¯´Ð½º »ç¿ëÀÚ À̸§°ú SMB »ç¿ëÀÚ À̸§ÀÌ ´Þ¶ó µÑ °£ÀÇ
¿¬°ü Å×À̺íÀ»
# ÇÊ¿äÇÒ ¶§ »ç¿ëÇÕ´Ï´Ù.
; username map = /etc/smbusers
# ´ÙÀ½ ¿É¼ÇÀº Á¢¼ÓÇÏ´Â °¢ ¸Ó½Å¸¶´Ù ¼·Î ´Ù¸¥ ¼³Á¤À» ¿øÇÒ
¶§ »ç¿ëÇÕ´Ï´Ù.
# ¿©±â¼ %m Àº Á¢¼ÓÇϴ ȣ½ºÆ®ÀÇ NetBIOS À̸§À¸·Î ´ëüµË´Ï´Ù.
; include = /etc/smb.conf.%m
# ´ëºÎºÐÀÇ °æ¿ì ´ÙÀ½ ¿É¼ÇÀ» ÁÖ¸é ¼º´É Çâ»ó È¿°ú¸¦ º¼ ¼ö
ÀÖ½À´Ï´Ù.
# ÀÚ¼¼ÇÑ »çÇ×Àº speed.txt ¿Í ¸Ç ÆäÀÌÁö¸¦ Âü°íÇϽʽÿÀ.
socket options = TCP_NODELAY
# »ï¹Ù°¡ ¿©·¯ °³ÀÇ ÀÎÅÍÆäÀ̽º¸¦ »ç¿ëÇϵµ·Ï ¼³Á¤ÇÕ´Ï´Ù.
# ¿©·¯ °³ÀÇ ³×Æ®¿÷ ÀÎÅÍÆäÀ̽º¸¦ °¡Áö°í ÀÖ´Ù¸é ±× ÀÎÅÍÆäÀ̽ºµéÀ»
¸ðµÎ
# ³ª¿ÇϽʽÿÀ. ÀÚ¼¼ÇÑ »çÇ×Àº ¸Ç ÆäÀÌÁö¸¦ Âü°íÇϽʽÿÀ.
# ´ÙÀ½ ¿¹´Â »ï¹Ù ¼¹ö°¡ 192.168.12.2, 192.168.13.2 ÀÌ·¸°Ô
µÎ °³ÀÇ ÁÖ¼Ò¸¦
# °¡Áö°í ÀÖ°í 24 ºñÆ® Áï ³Ý¸Å½ºÅ© 255.255.255.0 ¸¦ »ç¿ëÇÏ¿©
# 192.168.12.0, 192.168.13.0 ³×Æ®¿÷ÀÇ È£½ºÆ®¿¡ ´ëÇؼ
¹Þ¾ÆµéÀÔ´Ï´Ù.
; interfaces = 192.168.12.2/24 192.168.13.2/24
# ¿ø°Ý ºê¶ó¿ìÁî ¸ñ·Ï°úÀÇ µ¿±âÈ¿¡ °üÇÑ ¼³Á¤ÀÔ´Ï´Ù.
# °øÇ¥ ¿äûÀ» Çϰųª ¶Ç´Â ºê¶ó¿ìÁî ¸ñ·Ï µ¿±âÈÇØ
ÁÙ ´ë»ó:
# ƯÁ¤ È£½ºÆ® ¶Ç´Â
Àüü ¼ºê³ÝÀ» ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
# (¾Æ·¡ Âü°í)
; remote browse sync = 192.168.3.25 192.168.5.255
# Áö¿ªÀûÀÎ ¼ºê³Ý¿¡ ÀÚ±â ÀÚ½ÅÀ» °øÇ¥Çϵµ·Ï ¼³Á¤ÇÕ´Ï´Ù.
# À©µµ¿ìÁî ³×Æ®¿÷ ȯ°æ¿¡¼ »ï¹Ù ¼¹ö°¡ Àß º¸À̵µ·Ï ÇÒ
¶§ À¯¿ëÇÕ´Ï´Ù.
; remote announce = 192.168.1.255 192.168.2.44
# ºê¶ó¿ìÁ® Á¦¾î ¿É¼Ç:
# »ï¹Ù°¡ ³×Æ®¿÷¿¡ ´ëÇÑ ¸Å½ºÅÍ°¡ µÇ±æ ¹Ù¶óÁö ¾ÊÀ¸¸é local
master ¼³Á¤À»
# no ·Î ÇϽʽÿÀ. ±×·¸Áö ¾ÊÀº °æ¿ì¿¡´Â ÀϹÝÀûÀÎ
¼±°Å ±ÔÄ¢À» µû¸¨´Ï´Ù.
; local master = no
# OS ·¹º§Àº ¸Å½ºÅÍ ºê¶ó¿ìÁ® ¼±°Å °úÁ¤¿¡¼ ¼¹öÀÇ ¿ì¼±±ÇÀ»
°áÁ¤ÇÕ´Ï´Ù.
# ±âº»°ªÀÌ ÀûÀýÇÕ´Ï´Ù. µû¶ó¼ Ưº°È÷ ¹Ù²Ü ÀÌÀ¯°¡
¾ø½À´Ï´Ù.
; os level = 33
# domain master ´Â »ï¹Ù·Î ÇÏ¿ä±Ý µµ¸ÞÀÎ ¸Å½ºÅÍ ºê¶ó¿ìÁ®°¡
µÇµµ·Ï ÇØÁÝ´Ï´Ù.
# »ï¹Ù´Â ¼ºê³Ýµé·ÎºÎÅÍ ºê¶ó¿ìÁî ¸ñ·ÏÀ» ¸ðÀ¸´Â ÀÛ¾÷À»
ÇÏ°Ô µË´Ï´Ù.
# ÀÌ¹Ì ÀÌ ±â´ÉÀ» ´ã´çÇÏ°í ÀÖ´Â À©µµ¿ìÁî NT µµ¸ÞÀÎ ÄÁÆ®·Ñ·¯°¡
ÀÖ´Ù¸é ÀÌ°ÍÀ»
# »ç¿ëÇؼ´Â ¾ÈµË´Ï´Ù.
; domain master = yes
# preferred master ¿É¼ÇÀ» ÄÑµÎ¸é ½Ãµ¿ÇÒ ¶§ Áö¿ª ºê¶ó¿ìÁ®
¼±°Å¸¦ Çϵµ·Ï
# ¸¸µé°í ¼±°Å¿¡¼ ÀÌ±æ ¼ö ÀÖ´Â Á» ´õ ³ôÀº ±âȸ¸¦ ºÎ¿©¹Þ½À´Ï´Ù.
; preferred master = yes
# ¼³Ä¡ÇÒ ¶§ ÁÖ µµ¸ÞÀÎ ÄÁÆ®·Ñ·¯·Î ¼³Á¤µÈ NT ¼¹ö°¡ Á¸ÀçÇÒ ¶§¸¸ »ç¿ëÇÕ´Ï´Ù.
; domain controller = <NT µµ¸ÞÀÎ ÄÁÆ®·Ñ·¯ SMB À̸§>
# »ï¹Ù°¡ À©µµ¿ìÁî95 ¿öÅ©½ºÅ×À̼ǿ¡ ´ëÇÑ µµ¸ÞÀÎ ·Î±×¿Â
¼¹ö ¿ªÇÒÀ» Çϱæ
# ¿øÇÏ´Â °æ¿ì ÄѵӴϴÙ.
; domain logons = yes
# µµ¸ÞÀÎ ·Î±×¿ÂÀ» ¼±ÅÃÇß°í °¢ ¸Ó½Å º°·Î ¶Ç´Â °¢ »ç¿ëÀÚ
º°·Î ·Î±×¿Â ½ºÅ©¸³Æ®¸¦
# ±¸ºÐÇÏ¿© ƯÁ¤ ¹èÄ¡ ÆÄÀÏÀ» ÀÛµ¿½ÃÅ°±æ ¿øÇÏ´Â °æ¿ì »ç¿ëÇÕ´Ï´Ù.
; logon script = %m.bat
# »ç¿ëÀÚ À̸§¿¡ ÀÇ°ÅÇÏ¿© ¼·Î ´Ù¸¥ ·Î±×¿Â ¹èÄ¡ ÆÄÀÏÀ» ½ÇÇà½Ãų ¶§
; logon script = %U.bat
# ·Î¿ìºù ÇÁ·ÎÆÄÀÏ(roving profile)À» ¾îµð¿¡ ÀúÀåÇÒ °ÍÀΰ¡?
# (Win95¿Í
WinNT¿¡¸¸ ÇØ´çµË´Ï´Ù.)
# %L Àº ¼¹öÀÇ
NetBIOS À̸§À¸·Î, %U´Â »ç¿ëÀÚ À̸§À¸·Î ´ëüµË´Ï´Ù.
# µÚ¿¡ ³ª¿À´Â
[Profiles] °øÀ¯¿¡ ÀÖ´Â ÁÖ¼®À» Ç®¾îÁÖ´Â °ÍÀ» ÀØÁö
# ¾Êµµ·Ï ÇϽʽÿÀ.
; logon path = \\%L\Profiles\%U
# À©µµ¿ìÁî ÀÎÅÍ³Ý ³×ÀÓ ¼ºñ½º WINS Áö¿ø ¼½¼Ç:
# ÁÖÀÇ: /etc/lmhosts¸¦ ¸¸µé¾î ¸¶Ä¡ /etc/hosts¿Í °°ÀÌ
Àû½À´Ï´Ù.
# ¿¹)
# 192.168.0.1 ANNA
; wins support = yes
# WINS ¼¹ö - »ï¹ÙÀÇ NMBD ·Î ÇÏ¿©±Ý WINS Ŭ¶óÀ̾ðÆ®°¡
µÇµµ·Ï ÇÕ´Ï´Ù.
# ÁÖÀÇ : »ï¹Ù´Â WINS
¼¹ö ¶Ç´Â Ŭ¶óÀ̾ðÆ® Áß Çϳª¸¸ µÉ ¼ö ÀÖ´Ù.
; wins server = w.x.y.z
# WINS ÇÁ·Ï½Ã - »ï¹Ù·Î ÇÏ¿©±Ý WINS ±â´ÉÀ» °®ÃßÁö ¸øÇÑ
Ŭ¶óÀ̾ðÆ®¸¦ ´ë½ÅÇÏ¿©
# À̸§¿¡ ÇØ´çÇÏ´Â ÁÖ¼Ò Ã£±â Áú¹®À» ´ë½Å ´äÇϵµ·Ï ÇÕ´Ï´Ù.
# À̸¦ À§Çؼ´Â ³×Æ®¿÷ »ó¿¡ Àû¾î ÇÑ °³ ÀÌ»óÀÇ WINS ¼¹ö°¡
ÀÖ¾î¾ß ÇÕ´Ï´Ù.
# ±âº»°ªÀº NO
; wins proxy = yes
# DNS ÇÁ·Ï½Ã - »ï¹Ù·Î ÇÏ¿©±Ý DNS nslookup À» »ç¿ëÇÏ¿©
NetBIOS À̸§À» ãÀ»
# °ÍÀÎÁö ¾Æ´ÑÁö Áö½ÃÇÕ´Ï´Ù.
# 1.9.17 ¹öÀü¿¡¼´Â ³»ºÎ ±âº»°ªÀÌ yes ¿´À¸³ª 1.9.18 ¹öÀü¿¡¼´Â
no ·Î
# º¯°æµÇ¾ú½À´Ï´Ù.
dns proxy = no
# ´ë¼Ò¹®ÀÚ º¸Á¸ÀÌ ÇÊ¿äÇÒ ¶§°¡ ÀÖ½À´Ï´Ù. ½Ã½ºÅÛ ±âº»°ªÀº
NO ÀÔ´Ï´Ù.
# ÁÖÀÇ: °¢ °øÀ¯º°·Î ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
# ÇѱÛÀ» Á¦´ë·Î º¸±â À§Çؼ´Â ±¸º°ÇØ¾ß ÇÕ´Ï´Ù.
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
preserve case = yes
short preserve case
= yes
# ¼³¸í : Çѱ۹®Á¦ÀÎ °ü°è·Î yes·Î
¼³Á¤ÇÔ
# µµ½º ÆÄÀÏ¿¡ ´ëÇÑ ±âº» ¹®ÀÚ´Â ´ë¹®ÀÚÀÔ´Ï´Ù.
; default case = lower
# ´ë¼Ò¹®ÀÚ ±¸º°Àº ÁÖÀǸ¦ ¿äÇÕ´Ï´Ù. - ¹®Á¦¸¦ ÀÏÀ¸Å³ ¼öµµ ÀÖ½À´Ï´Ù!
; case sensitive = no
#============================ °øÀ¯ Á¤ÀÇ ======================================
[homes]
comment = Ȩ µð·ºÅ丮
browseable = no
writable = yes
# µµ¸ÞÀÎ ·Î±×¿ÂÀ» À§ÇÑ netlogin µð·ºÅ丮¸¦ ¸¸µé°í ÁÖ¼®
ÇØÁ¦ÇÕ´Ï´Ù.
# ¹°·Ð µµ¸ÞÀÎ ·Î±×¿Â ±â´ÉÀ» Áö¿øÇÒ ¶§¸¸ ÇÊ¿äÇÕ´Ï´Ù.
; [netlogon]
; comment = Network Logon Service
; path = /home/netlogon
; guest ok = yes
; writable = no
; share modes = no
# ƯÁ¤ÇÑ ·Î¿ìºù ÇÁ·ÎÆÄÀÏ(roving profile) °øÀ¯¸¦ Á¦°øÇÏ°íÀÚ
ÇÑ´Ù¸é ´ÙÀ½ÀÇ
# ÁÖ¼®À» Ç®¾îÁֽʽÿÀ.
# the default is to use the user's home directory
# ±âº»°ªÀº »ç¿ëÀÚÀÇ È¨ µð·ºÅ丮ÀÔ´Ï´Ù.
;[Profiles]
; path = /home/profiles
; browseable = no
; guest ok = yes
# ÁÖÀÇ: BSD ½ºÅ¸ÀÏÀÇ ÇÁ¸°Æ® ½Ã½ºÅÛ(ÇöÀç ´ëºÎºÐÀÇ ¸®´ª½º
½Ã½ºÅÛÀÌ ±×·¯ÇÔ)
# À̶ó¸é °¢°¢ÀÇ ÇÁ¸°Å͸¦ Á¤ÀÇÇØ ÁÙ ÇÊ¿ä ¾øÀÌ ÀÚµ¿À¸·Î
ÀÌ·ïÁý´Ï´Ù.
[printers]
comment = ¸ðµç ÇÁ¸°ÅÍ
path = /var/spool/samba
browseable = no
# guest ok = yes ¶ó°í Çϸé 'guest account'·Î ÁöÁ¤ÇÑ »ç¿ëÀÚµéÀÌ
ÇÁ¸°ÆÃÀ»
# ÇÒ ¼ö ÀÖ½À´Ï´Ù. public = yes µµ °°Àº Ç¥ÇöÀÔ´Ï´Ù.
guest ok = yes
writable = yes
; writable = no
printable = yes
# ¼³¸í : À§ÀÇ ¼³Á¤¿¹´Â guest¿¡°Ôµµ
ÇÁ¸°ÅÍ»ç¿ëÇÒ ±ÇÇÑÀ» ÁÜ.
# º¸¾È¹®Á¦°¡ ÀÖÀ¸¹Ç·Î writable
list ·Î °¡´ÉÇÑ °èÁ¤¸¸ ¼³Á¤¹Ù¶÷.
# ´ÙÀ½Àº »ç¶÷µéÀÌ ÆÄÀÏÀ» °øÀ¯ÇÒ ¼ö ÀÖµµ·Ï ÇÒ ¶§ À¯¿ëÇÕ´Ï´Ù.
# ÁÖÀÇ: /tmp ´Â ½Ã½ºÅÛÀÇ Àӽà ÀÛ¾÷ °ø°£À̹ǷΠ/var/tmp
¿Í °°Àº °÷¿¡
# Ä¿´Ù¶õ ÆÄƼ¼ÇÀ» ¸¶¿îÆ®ÇÏ°í ±×°÷À» »ç¿ëÇϵµ·Ï ÇÏ´Â °ÍÀÌ
ÁÁ½À´Ï´Ù.
# Áö±ÝºÎÅÍ´Â ÀÓÀÇ·Î Á¤ÀÇ °¡´ÉÇÑ °øÀ¯ ¼³Á¤ÀÇ ¿¹ÀÔ´Ï´Ù.
´ÙÀ½ ¼³Á¤µéÀ» º¸¸é¼
# ¿©·¯ºÐÀÌ ¿øÇÏ´Â °øÀ¯¸¦ Á¤ÀÇÇغ¸½Ã±â ¹Ù¶ø´Ï´Ù.
;[tmp]
; comment = Àӽà ÆÄÀÏ °ø°£
; path = /tmp
; read only = no
; public = yes
# °ø°³ÀûÀ¸·Î Á¢±Ù °¡´ÉÇÑ µð·ºÅ丮ÀÌÁö¸¸ Àб⸸ °¡´ÉÇÏ°í
"staff" ±×·ì¿¡
# ¼ÓÇÑ »ç¿ëÀڵ鸸ÀÌ ¾²±â¸¦ ÇÒ ¼ö ÀÖ´Â ¼³Á¤ÀÇ ¿¹ÀÔ´Ï´Ù.
[public]
comment = "°øÀ¯³»¿ë"
path = /home/samba
public = yes
writable = no
printable = no
; write list = @staff
# ¼³¸í : ±âº»ÀûÀ¸·Î ¼³Á¤µÇ¾î ÀÖ´Â
ºÎºÐ¿¡ ¸ðµçÀ¯Àú¿¡°Ô Àбâ±ÇÇѸ¸ ÁÖ´Â ¼³Á¤ÀÓ
# °æ·ÎÁöÁ¤ÀÎ /home/samba ¿¡¼ "samba"¶ó´Â
Æú´õ°¡ À©µµ¿ì»ó¿¡¼´Â º¸ÀÌÁú ¾Ê°í
# [public]¿¡¼ "public"ÀÌ º¸ÀÓ.
ÀÌ ºÎºÐÀº ÀÓÀ¸·Î ¼öÁ¤°¡´ÉÇÔ.
# Áï [*]¿¡ µé¾î°£ ¼ºñ½º¸íÀÌ À©µµ¿ì»ó¿¡
º¸ÀÓ............
# ±âŸ ´Ù¸¥ ¿¹.
# Á¶±ÝÀº ƯÁ¤ ¿ëµµ¿¡ ¸Â´Â »ó¼¼ÇÑ ¼³Á¤ ¿¹ÀÔ´Ï´Ù.
#
# fred ¶ó´Â »ç¿ëÀÚ¸¸ ÀÌ¿ëÇÒ ¼ö ÀÖ´Â °³ÀÎÀûÀÎ ÇÁ¸°ÅÍ ¼³Á¤.
# ½ºÇ® ÀÚ·á´Â fred ÀÇ È¨ µð·ºÅ丮¿¡ ¾º¿©Áý´Ï´Ù.
# fred ´Â ÁöÁ¤ÇÑ ½ºÇ® µð·ºÅ丮¿¡ ¾²±â ±ÇÇÑÀ» °¡Áö°í ÀÖ´Â
»óÅ¿©¾ß ÇÕ´Ï´Ù.
;[fredsprn]
; comment = Fred Àü¿ë ÇÁ¸°ÅÍ
; valid users = fred
; path = /homes/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes
# fread ¸¸ÀÌ ÀÌ¿ëÇÒ ¼ö ÀÖ´Â °³ÀÎÀûÀÎ µð·ºÅ丮 ¼³Á¤ÀÔ´Ï´Ù.
# µð·ºÅ丮¿¡ ´ëÇÏ¿© fred ÀÇ ¾²±â ±ÇÇÑÀÌ ÀÖ´Â »óÅ¿©¾ß
ÇÕ´Ï´Ù.
;[fredsdir]
; comment = Fred °³ÀÎ ¼ºñ½º
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no
# Á¢¼ÓÇÏ´Â ¸Ó½Å¿¡ µû¶ó ¼·Î ´Ù¸¥ µð·ºÅ丮¸¦ Á¦°øÇÏ´Â ¼ºñ½ºÀÇ
ÁÁÀº ¿¹ÀÔ´Ï´Ù.
# ÀÌ·¸°Ô ÇÔÀ¸·Î½á Á¢¼Ó ¸Ó½Å¿¡ µû¶ó ½ÇÁ¦ ¼³Á¤ ³»¿ëÀÌ ´Þ¶óÁö´Â
È¿°ú¸¦ ¾òÀ» ¼ö
# ÀÖ½À´Ï´Ù. »ç¿ëÀÚ À̸§À¸·Î ±¸º°ÇÏ·Á¸é %u ¿É¼ÇÀ»
´ë½Å »ç¿ëÇÏ¸é µË´Ï´Ù.
# %m Àº Á¢¼ÓÇÏ´Â ¸Ó½ÅÀÇ À̸§À¸·Î ġȯµË´Ï´Ù.
;[pchome]
; comment = PC µð·ºÅ丮
; path = /usr/pc/%m
; public = no
; writable = yes
# ¸ðµç »ç¿ëÀÚ°¡ ÀÐ°í ¾µ ¼ö ÀÖ´Â °ø°³ Á¢±Ù µð·ºÅ丮ÀÇ ¿¹ÀÔ´Ï´Ù.
# »ý¼ºµÇ´Â ¸ðµç ÆÄÀÏÀº ±âº» »ç¿ëÀÚÀÇ ¼ÒÀ¯°¡ µÇ¹Ç·Î ´Ù¸¥
»ç¿ëÀÚ°¡ ¿©·¯ºÐÀÌ ¸¸µç
# ÆÄÀÏÀ» Áö¿ï ¼ö ÀÖ½À´Ï´Ù. ´ç¿¬È÷ ÁÖ¾îÁø µð·ºÅ丮¿¡
´ëÇÏ¿© ±âº» »ç¿ëÀÚ°¡
# ¾²±â ±ÇÇÑÀ» °¡Áö°í ÀÖ¾î¾ß ÇÕ´Ï´Ù. ´Ù¸¥ »ç¿ëÀÚ¸¦
¸í½ÃÇÏ¸é ±âº» »ç¿ëÀÚ°¡ ¾Æ´Ñ
# ±× »ç¿ëÀÚÀÇ ¼ÒÀ¯°¡ µË´Ï´Ù.
[ÀÚÀ¯°Ô½ÃÆÇ]
comment = ¾²±â°¡´É
path = /home/smbboard
public = yes
only guest = yes
writable = yes
[¸®´ª½ºQA]
commnet = ¸®´ª½º°ü·ÃÁú¹®
path = /home/linuxboard
public = yes
only guest =yes
writable = yes
[¸®´ª½ºÆÁ]
commnet = ¸®´ª½ºÆÁ
path = /home/linuxtip
public = yes
# ¼³¸í : À§ÀÇ 3°³ÀÇ ¼ºñ½º´Â Á÷Á¢
Ãß°¡ÇÑ ¼ºñ½ºÀÓ
# °¢ÀÚ Çؼ®Çغ¸±æ ¹Ù¶ó¸ç,
# ÁÖÀÇ ÇÒ Á¡Àº À§ÀÇ [ÀÚÀ¯°Ô½ÃÆÇ]À»
¿¹¸¦ µé¸é
# public = yes ¼³Á¤À¸·Î ¸ðµç À¯Àú(À§ÀÇ
global¿¡¼ Á¤ÀÇÇÑ "pcguest")
# ¿¡°Ô /home/smbboard µð·ºÅ丮¿¡
Àбâ¿Í ¾²±â ±ÇÇÑÀ» Á¤ÀÇÇÔ.
# ¶ÇÇÑ ±ÇÇÑÀ» ÁÖ±âÀ§Çؼ´Â
# # pwd
# # /home
# # chmod 755 smbboard
# # chown pcguest smbboard
# ·Î ¼³Á¤ÇÏ¸é µÈ´Ù.
# ½ÇÁ¦ Àû¿ë ¿¹
# ´ÙÀ½ Ç׸ñÀº µÎ »ç¿ëÀÚ°¡ ¾î¶»°Ô ÇÑ µð·ºÅ丮¸¦ °øÀ¯ÇÏ¿©
»ç¿ëÇÏ°Ô ÇÒ ¼ö ÀÖ´ÂÁö
# ¿¹½ÃÇÏ°í ÀÖ½À´Ï´Ù. ÀÌ ¼³Á¤ÀÌ Á¦´ë·Î ÀÛµ¿ÇÏ·Á¸é
µð·ºÅ丮´Â µÎ »ç¿ëÀÚ¿¡ ÀÇÇØ
# ¾²±â °¡´ÉÇØ¾ß ÇÏ¸ç ½ºÆ½Å°(sticky) ºñÆ®¸¦ ¼³Á¤ÇÏ¿© ¼·ÎÀÇ
ÆÄÀÏ¿¡ ´ëÇÏ¿©
# ¾ÇÀÇÀûÀÎ ÇൿÀ» ÃëÇÒ ¼ö ¾øµµ·Ï ÇØÁà¾ß ÇÕ´Ï´Ù.
ÀÌ·± ¹æ¹ýÀ¸·Î ¿©·¯ »ç¿ëÀÚ°¡
# ÇÑ µð·ºÅ丮¸¦ ¾ÈÀüÇÏ°Ô °øÀ¯Çϵµ·Ï È®ÀåÇÒ ¼ö ÀÖ½À´Ï´Ù.
;[myshare]
; comment = Mary¿Í FredÀÇ °Í
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765
# ¸¶Áö¸· ++++++++++++++++++++++++++++++
# ÀÌ ¼³Á¤ÆÄÀÏÀ» ¼öÁ¤ÇßÀ¸¸é
# # testparm
# ¸í·ÉÀ¸·Î ¹®¹ýÀÌ Æ²·È³ª È®ÀÎÇغ¸±æ
¹Ù¶÷.
# ¶ÇÇÑ /etc/rc.d/init.d µð·ºÅ丮»ó¿¡¼
# # ./smb restart
# ·Î »ï¹Ùµ¥¸óÀ» Àç ½ÃÀÛÇØ¾ß ÇÑ´Ù.