swat는 xinet/inet을 통해 구동되는 웹서비스이다.
일단 swat를 사용하기 위해서는 samba 컴파일 시에
--without-swat가 있었는지 없었는지 확인을 해야한다.
(안하면 나 처럼 개고생 ㄱ-)
아무튼 기본적으로 사용하는 포트는 901번이며
Step 1. /etc/services 에 위의 901번 포트를 추가 해야 한다.
Step 2. /etc/xinetd.d/swat를 추가 한다.
# more /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 = localhost
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
}
[링크 : http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html#id2681240]
|
Step 3. xinetd를 restart 시킨다.
Step 4. 웹브라우저에서 901번 포트로 접속한다.
http://localhost:901
혹은
http://serverip:901
|
* 확인필요 *
--without-swat 로 설정하고 컴파일후 install을 해도
swat에서 사용하는 각종 html 파일들이 복사되지 않기 때문에
아래와 같은 에러가 발생하는 것으로 보인다.
500 Server Errorchdir failed - the server is not configured correctly |