우분투에서 samba를 이용하여 파일공유가 가능하다.
1. 파일 공유를 위한 서버에서 다음과 같이 samba package를 설치한다.
# sudo apt-get install samba smbfs
2. 접근할 ID와 비밀번호를 설정.
# sudo smbpasswd -a ID
3. samba 설정
# sudo vim /etc/samba/smb.conf
# 기본적인 설정
[global]
# 워크 그룹
workgroup = WORKGROUP
encrypt passwords = yes
# 접근 아이피 범위
hosts allow = 192.168.
# 문자 인코딩 설정, 우분투는 utf-8을 기본적으로
unix charset=utf-8
dos charset=utf-8
#공유 디렉토리 이름
[MyDoc]
comment = My Documents
path = /공유할/디렉토리/위치
#접근 설정 여부
read only = no
browsable = yes
등등... 필요한 내용을 입력한다.
ex)
# access IP address
[global]
host allow = 192.168
# authentication
[authentication]
security = user
# shared forder
[tinyos]
comment = xubuntu
path = /share
public = yes
available = yes
writeable = yes
create make = 0777
directory mask = 0777
guest ok = no
browseable = yes
4. 설정이 완료되면 재시작한다.
# sudo /etc/init.d/samba restart
the END.
댓글 없음:
댓글 쓰기