-
-
Save yoh2/5833729 to your computer and use it in GitHub Desktop.
SWATを有効にするためのxinetd設定ファイル /etc/xinetd.d/swat の我が家での設定。
デフォルトだとonly_fromがlocalhostになっていることがあって、そのままでは他ホストからアクセスできないのできちんと設定するのがミソ。
面倒なら 0.0.0.0/0 で横着する手も。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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. | |
| # $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/config/swat.xinetd,v 1.1 2007/09/07 21:07:40 dev-zero Exp $ | |
| service swat | |
| { | |
| port = 901 | |
| socket_type = stream | |
| wait = no | |
| only_from = localhost 192.168.1.0/24 2001:5c0:110a::/48 | |
| user = root | |
| server = /usr/sbin/swat | |
| log_on_failure += USERID | |
| disable = no | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
うあIPv6アドレス更新忘れてた。これ今使ってないやつだ。
今は他の人が使ってるかもしれないのでこのアドレスにちょっかいかけるのはやめて下さいね。