# redhat 계열
yum install smbd
# ubuntu
apt-get install smbd
smbpasswd -a USER_ID
New SMB passwd : passwd
#======================= Global Settings =====================================
[global]
workgroup = workgroup
server string = Samba Server Version %v
; netbios name = MYSERVER
; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
; hosts allow = 127. 192.168.12. 192.168.13.
log file = /var/log/samba/log.%m
# max 50KB per log file, then rotate
max log size = 50
# ----------------------- Standalone Server Options ------------------------
security = user
passdb backend = tdbsam
# password server = *
; security = domain
; passdb backend = tdbsam
; realm = MY_REALM
; password server = $NT_SERVER_NAME
# ----------------------- Domain Controller Options ------------------------
; security = user
; passdb backend = tdbsam
; domain master = yes
; domain logons = yes
; logon script = %m.bat
; logon script = %u.bat
; logon path = \\%L\Profiles\%u
; logon path =
; add user script = /usr/sbin/useradd "%u" -n -g users
; add group script = /usr/sbin/groupadd "%g"
; add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
; delete user script = /usr/sbin/userdel "%u"
; delete user from group script = /usr/sbin/userdel "%u" "%g"
; delete group script = /usr/sbin/groupdel "%g"
# ----------------------- Browser Control Options ----------------------------
; local master = no
; os level = 33
; preferred master = yes
#----------------------------- Name Resolution -------------------------------
; wins support = yes
; wins server = w.x.y.z
; wins proxy = yes
; dns proxy = yes
# --------------------------- Printing Options -----------------------------
load printers = no
cups options = raw
; printcap name = /etc/printcap
; printcap name = lpstat
; printing = cups
# --------------------------- Filesystem Options ---------------------------
; map archive = no
; map hidden = no
; map read only = no
; map system = no
; store dos attributes = yes
#============================ Share Definitions ==============================
#[homes]
# comment = Home Directories
# browseable = no
# writable = yes
#; valid users = %S
#; valid users = MYDOMAIN\%S
#[printers]
# comment = All Printers
# path = /var/spool/samba
# browseable = no
# guest ok = no
# writable = no
# printable = yes
#; [netlogon]
#; comment = Network Logon Service
#; path = /var/lib/samba/netlogon
#; guest ok = yes
#; writable = no
#; share modes = no
#; [Profiles]
#; path = /var/lib/samba/profiles
#; browseable = no
#; guest ok = yes
#; [public]
#; comment = Public Stuff
#; path = /home/samba
#; public = yes
#; writable = yes
#; printable = no
#; write list = +staff
[test_Linux_server]
comment = server for test on Linux
#공유 대상 디렉토리 경로 (로컬 권한은 777 이어야 한다.)
path = /home/encore/shared
public = yes
writable = yes
write list = encore haedong
cresate mask = 0777
directory mask = 0777
service smb start