Name

swat — Samba Web 管理ツール

Synopsis

swat [-s <Samba 設定ファイル>] [-a] [-P]

説明

このツールは Samba(7)システムの一部である。

swat は、Samba 管理者が Web ブラウザを使って複雑な smb.conf (5) の設定を行うことを可能にする。それに加え、swat の設定ページには、smb.conf 中で設定可能な全てのオプションへのリンクがあり、 管理者が設定変更の影響を簡単に調べられるようになっている。

swatinetd から実行される。

オプション

-s smb configuration file

デフォルトの設定ファイルのパスは、 コンパイル時に設定される。設定されたファイルには、 smbd(8) サーバに必要な詳細な設定が記述される。このファイルが swat によって修正されるファイルである。 ファイルには、そのサーバが提供する全てのサービスの記述に加え、 printcap ファイルの位置のようなサーバ固有の情報も含まれる。 詳細情報については、smb.conf を参照のこと。

-a

このオプションは、認証機能を無効にし、 swat をデモモードにする。 このモードでは、誰でも smb.conf ファイルを修正する事ができてしまう。

警告: 運用中のサーバでは、 このオプションを絶対に有効にしないこと。

-P

このオプションは、リードオンリユーザを、パスワード管理ページに制限する。 swatは次に、"View"と"Status"メニューボタンを見せることなしに ユーザのパスワードを変更することが出来る。

-d|--debuglevel=level

level is an integer from 0 to 10. The default value if this parameter is not specified is 0.

The higher this value, the more detail will be logged to the log files about the activities of the server. At level 0, only critical errors and serious warnings will be logged. Level 1 is a reasonable level for day-to-day running - it generates a small amount of information about operations carried out.

Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic.

Note that specifying this parameter here will override the parameter in the smb.conf file.

-V|--version

Prints the program version number.

-s|--configfile <configuration file>

The file specified contains the configuration details required by the server. The information in this file includes server-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide. See smb.conf for more information. The default configuration file name is determined at compile time.

-l|--log-basename=logdirectory

Base directory name for log/debug files. The extension ".progname" will be appended (e.g. log.smbclient, log.smbd, etc...). The log file is never removed by the client.

-h|--help

Print a summary of command line options.

インストール

Swat は、ほとんどのディストリビューションのバイナリパッケージに 含まれている。 その場合パッケージマネージャがインストールと設定を行う。 このセクションは一から swat をコンパイルした人のみを対象としている。

SWAT をコンパイルした後、make install を実行して swat バイナリといろいろなヘルプとイメージ ファイルをインストールする必要がある。 デフォルトのインストールでは以下のものが入れられる:

  • /usr/local/samba/bin/swat

  • /usr/local/samba/swat/images/*

  • /usr/local/samba/swat/help/*

関連ファイル

/etc/inetd.conf

このファイルには、メタデーモンのための適切な 起動情報が含まれている。

/etc/services

このファイルには、サービス名 (例: SWAT) とサービスポート (例: 901)、そのプロトコルの種類 (例: tcp) のマッピングに関する情報が含まれている。

/usr/local/samba/lib/smb.conf

これは swat が編集する smb.conf(5) サーバ設定ファイルのデフォルトの位置である。 他によくあるインストール先としては /usr/samba/lib/smb.conf/etc/smb.conf がある。 このファイルにはサーバがクライアントに提供する全てのサービスに ついての記述がある。

警告

swat smb.conf(5) ファイルを書き換えてしまう。エントリは再配置され、コメントや include=copy= オプションは削除されてしまう。 既に念入りに手をかけて作成した smb.conf を持っている場合は、事前にバックアップしておくか、swat を使わないこと!

著者

オリジナルの Samba ソフトウェアと関連するユーティリティは、 Andrew Tridgell によって作成された。現在 Samba は Samba Team によって、 Linux カーネルの開発と同様の オープンソースプロジェクトとして開発が 行なわれている。

オリジナルの Samba マニュアルページは Karl Auer によって作成された。マニュアルページは YODL 形式 ( ftp://ftp.icce.rug.nl/pub/unix/ で入手可能な優れたオープンソースソフトウェア) に変換され、 Samba 2.0 リリースに伴い、Jeremy Allison によって更新された。 Samba 2.2 における DocBook 形式への変換は、Gerald Carter によって行なわれた。 Samba 3.0 における DocBook XML 4.2 への変換は Alexander Bokovoy によって行われた。