- 2009/09/21 윈도우 공유 테스트
- 2009/09/21 Samba - no printer (3)
- 2009/09/17 CentOS 5 Samba 설정 (1)
LazyDreamy » Search » Results » Articles
samba와 관련된 글 3개
윈도우 공유 테스트
드림 | 2009/09/21 15:32
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 = UTF8smb ports = 139
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192load printers = no
show add printer wizard = no
printing = none
printcap name = /dev/null
disable spoolss = yessecurity = user
passdb backend = tdbsam[data]
comment = "data"
path = /share
browseable = yes
writeable = yes
public = no
프린터 사용 안함으로 설정
트랙백 없음 | 댓글 3개
트랙백+댓글 | 트랙백 | 댓글
-
Comment by 드림 at 2009/09/21 14:38 / Permalink / Reply / Modify/Delete
http://www.damoa.biz/homelinux/bbs/board.php?bo_table=linux_tip&wr_id=51&PHPSESSID=ecd7f52d3ffed819538bf9f8106cc9dd
-
Comment by 뚜르 at 2009/09/21 14:53 / Permalink / Reply / Modify/Delete
갈수록 안드로로 가는 포스팅 -0-
-
Reply by 드림 at 2009/09/21 17:22 / Permalink / Modify/Delete
오랜만에 할라니 다 까먹어서 -_-;
정리하면서 할라니 쏠린다 후으~
-
-
Write your comment
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 = centosdos 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























