블로그 이미지
은총애비!!

카테고리

분류 전체보기 (2525)
Linux (35)
Error 해결 방법 (5)
소소한 일상 (1620)
사진실 (0)
책책책, 책을 읽읍시다!! (21)
기타(JSP & DB & 등등) (4)
미국 주식 관련 (541)
아침형 인간 프로젝트 (292)
Total
Today
Yesterday

'SWAT'에 해당되는 글 1건

  1. 2014.10.18 [MicroServer G7 N54L] SAMBA SWAT 설치 및 설정
반응형
[MicroServer G7 N54L] SAMBA SWAT 설치 및 설정

 

 

SWAT(Samba Web Adminstrator Tool)

웹 페이지 기반으로 SAMBA를 설정 할 수 있습니다.

SWAT는 TCP 901 포트를 사용 합니다.

 

아래와 같이 우선 swat가 설치 되어 있는지 확인 합니다.


[root@localhost xinetd.d]# rpm -qa |grep samba
samba4-libs-4.0.0-23.alpha11.el6.i686
samba-winbind-3.6.9-169.el6_5.i686
samba-3.6.9-169.el6_5.i686
samba-common-3.6.9-169.el6_5.i686
samba-client-3.6.9-169.el6_5.i686
samba-swat-3.6.9-169.el6_5.i686
samba-winbind-clients-3.6.9-169.el6_5.i686
[root@localhost xinetd.d]#


 

설치가 안되어 있다면

yum -y install samba-swat로 설치 합니다.

 

yum으로 설치 하면 /etc/xinetd.d/swat 파일이 생깁니다.


[root@localhost xinetd.d]# ls
chargen-dgram   daytime-dgram   discard-dgram   echo-dgram   rsync  tcpmux-server  time-stream
chargen-stream  daytime-stream  discard-stream  echo-stream  swat   time-dgram
[root@localhost xinetd.d]#


 

vi /etc/xinetd.d/swat로 파일을 엽니다.


# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
#              to configure your Samba server. To use SWAT, \
#              connect to port 901 with your favorite web browser.
service swat
{
        port            = 901
        socket_type     = stream
        wait            = no
        only_from       = 127.0.0.1
        user            = root
        server          = /usr/sbin/swat
        log_on_failure  += USERID
        disable         = yes  => no로 변경합니다.
}


그리고 방화벽에서 TCP 901 포트를 열어줍니다.

 

그리고 xinetd를 재시작 합니다.

[root@localhost xinetd.d]# service xinetd restart
xinetd 를 정지 중:                                           [실패]
xinetd (을)를 시작 중:                                      [ OK ]
[root@localhost xinetd.d]#

 

이렇게 하면 설치 및 설정 끝!!

 

그럼 이제 접속을 해봅시다.

http://서버IP or 도메인:901

또는

http://localhost:901

 

그런데...외부(윈도우)에서는 접속이 안된다..내부(리눅스)에서는 접속이 잘 되지만...ㅠ,.ㅠ

 

 

위 외부(윈도우)에서 접속 안되는 문제 해결

/etc/xinetd.d/swat 파일중에서

# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
#              to configure your Samba server. To use SWAT, \
#              connect to port 901 with your favorite web browser.
service swat
{
        port            = 901
        socket_type     = stream
        wait            = no
#      only_from       = 127.0.0.1 이부분을 주석 처리

(이부분이 접속 할 주소를 설정 하는 부분. 주석처리 함으로써 어디서든지 접속 가능해짐)
        user            = root
        server          = /usr/sbin/swat
        log_on_failure  += USERID
        disable         = no

}

 

반응형
Posted by 은총애비!!
, |

최근에 달린 댓글

최근에 받은 트랙백

글 보관함