1/21/2009

□□□□□□□□ samba □□□□□□□□

다음의 rpm을 설치해준다.
{
samba-swat-3.0.23c-2
samba-client-3.0.23c-2
samba-3.0.23c-2
samba-common-3.0.23c-2
system-config-samba-1.2.39-1.el5
}
(설치는 rpm -ivh rpm_name )
그 이후 /etc/samba/smb.conf 환경 설정 파일에서 설정.
{
[global]
workgroup = workgroup
server string = samba
log file = /var/log/samba/%m.log
security = share
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
client code page = 949
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
Hosts allow = 192.168.2.

[homes]
comment = home directory
browseable = no
read only = no



[public]
comment = public
path = /public
public = yes
writable = yes
printable = no
write list = @staff
#guest = ok 게스트 접속(인증이 필요없음) 가능
}

※윈도우에서 삼바서버가 설치되어있는 곳으로 접속을 시도-
연결이 되고 파일의 다운로드가 가능하면 성공

윈도우에 있는 공유폴더를 리눅스에 마운트 시키자-
mount -t cifs //192.168.2.42/backup /mnt/backup
(mount -t cifs //윈도우IP/공유폴더 /mnt/마운트폴더)

마운트 한 이후에 ls mnt/backup 확인

No comments:

Post a Comment