NodeC 2013. 3. 28. 17:05

* 삼바 설치

~$ sudo apt-get install samba

 


* 삼바 설정

~$ sudo vi /etc/samba/smb.conf

 


* 내용 추가

[global]
# 윈도우 네트워크 환경의 작업 그룹 이름을 입력했습니다.
workgroup = workgroup
dos charset = CP949
display charset = UTF8
unix charset = UTF8

; load printers = yes
printing = lpmg

# 윈도우 탐색기에 출력할 컴퓨터 이름입니다.
server string = vmUbuntuSambaServer
printcap name = /etc/printcap
cups options = raw
log file = /var/log/samba/%m.log
max log size = 50

# 사용자 계정으로 설정합니다.
security = USER
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
password server = None
username map = /etc/samba/smbusers
; idmap uid = 16777216-33554431
; idmap gid = 16777216-33554431
; template shell = /bin/false
; guest ok = no
; winbind use default domain = no

# santa 유저에 대한 삼바 공유 폴더 설정입니다.
[santa]
comment = santa samba
path = /home/santa
writeable = yes
guest ok = no
create mask = 0644
directory mask = 0755

[tmp]
comment = tmp samba
path = /tmp
valid users = santa
writeable = yes
guest ok = no
create mask = 0644
directory mask = 0755

 


* 추가 완료 후 삼바 사용자 설정

~$sudo smbpasswd -a santa

 


* 추가 완료 후 삼바 재 시작

~$sudo /etc/init.d/smbd restart

 


* 윈도우탐색기에서 \\192.125.0.101 접속 성공