LazyDreamy

관리자 | 글쓰기

LazyDreamy » Search » Results » Articles

samba와 관련된 글 3개

  1. 2009/09/21 윈도우 공유 테스트
  2. 2009/09/21 Samba - no printer (3)
  3. 2009/09/17 CentOS 5 Samba 설정 (1)

LazyDreamy » Computer

윈도우 공유 테스트

드림 | 2009/09/21 15:32

captured_Image.png

Windows XP 공유 (single drive)


 captured_Image.png[3]

Linux 공유 (samba 3, raid 6 (7hdd))

2009/09/21 15:32 2009/09/21 15:32


태그 ,

(go to top)

LazyDreamy » Computer/Linux

Samba - no printer

드림 | 2009/09/21 14:30

http://dream.nmain.net/tc/301 에 이어서


[global]
workgroup = workgroup
server string = data-server01
netbios name = data-server01
dos charset = CP949
unix charset = UTF8

smb ports = 139
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

load printers = no
show add printer wizard = no
printing = none
printcap name = /dev/null
disable spoolss = yes

security = user
passdb backend = tdbsam

[data]
comment = "data"
path = /share
browseable = yes
writeable = yes
public = no

프린터 사용 안함으로 설정

2009/09/21 14:30 2009/09/21 14:30


태그

(go to top)

LazyDreamy » Computer/Linux

CentOS 5 Samba 설정

드림 | 2009/09/17 17:12

samba 설치

yum 보다 개별 설치를 추천한다. quota 설정을 하는데, 현재 설치할 때까지 있는 버젼은 3.0.33 대였는데 해당 버젼은 quota 버그가 있다. (제대로 체크 / 제한이 되지 않는다.)

http://ftp.sernet.de/pub/samba/experimental/rhel/5/i386/

libwbclient0-3.4.1-40.el5.i386.rpm
samba3-3.4.1-40.el5.i386.rpm
samba3-client-3.4.1-40.el5.i386.rpm

으로 받아서 설치.


/etc/samba/smb.conf

[global]
workgroup = workgroup
server string = TestServer
netbios name = centos

dos charset = CP949
unix charset = UTF8
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

security = user
passdb backend = tdbsam

[Datatest]
comment = test
path =  /test/sambadata
browseable = yes
writeable = yes
public = no


방화벽 수정

/etc/sysconfig/iptables

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT

selinux 설정

(이 부분은 정리가 안되서 ;)

일단 주석에 관련 내용

# SELINUX NOTES:

#

# If you want to use the useradd/groupadd family of binaries please run:

# setsebool -P samba_domain_controller on

#

# If you want to share home directories via samba please run:

# setsebool -P samba_enable_home_dirs on

#

# If you create a new directory you want to share you should mark it as

# "samba-share_t" so that selinux will let you write into it.

# Make sure not to do that on system directories as they may already have

# been marked with othe SELinux labels.

#

# Use ls -ldZ /path to see which context a directory has

#

# Set labels only on directories you created!

# To set a label use the following: chcon -t samba_share_t /path

#

# If you need to share a system created directory you can use one of the

# following (read-only/read-write):

# setsebool -P samba_export_all_ro on

# or

# setsebool -P samba_export_all_rw on

#

# If you want to run scripts (preexec/root prexec/print command/...) please

# put them into the /var/lib/samba/scripts directory so that smbd will be

# allowed to run them.

# Make sure you COPY them and not MOVE them so that the right SELinux context

# is applied, to check all is ok use restorecon -R -v /var/lib/samba/scripts

2009/09/17 17:12 2009/09/17 17:12


태그

(go to top)