次のページ 前のページ 目次へ

4. User defined account management commands

When linuxconf creates or deletes user accounts, it calls various scripts. You can override these scripts by entering the path to your own versions. You can also disable this process by erasing the path. Linuxconf provides default values for some of these scripts.

4.1 コマンドラインの引数

Linuxconf always calls the scripts with the same command line. It is built with the following arguments.

4.2 アカウント削除コマンド

(この項目が空ない場合)指定のコマンドがホーム・ディレクトリやメー ルInboxフォルダ等アカウント・データの削除に利用されます。アカ ウントを削除する際、ポップアップダイアログから、データのアーカ イブ化か、削除するのか、残すのか適切な処理を選択してください。 デフォルトの削除コマンドが提供されていますが、別の新しいものを 登録することができます。

4.3 アカウント・アーカイブ作成・コマンド

デフォルトでアーカイブを作成するためのコマンドが提供されていま す。 これは、ホームや、メールInboxフォルダのデータを圧縮して tarファイルにして保存します。このファイルは、/home/oldaccounts に作成されます。ファイル名は次の形式になります。

        ユーザ名-年-月-日-PID.tar.gz
        

PIDにはアーカイブコマンドのプロセスIDがそのまま入ります。これ は、名前の重複を完全に避けるために利用されています。

作成されたアーカイブファイルは /home/oldaccountsにずっとそのま ま残ることになりますが、あなたの組織へ適用した管理方針に従って、 古くなったものから順番に削除することもできます。

この項目は、あなた自身のアーカイブ作成コマンドを指定するのに利 用することができます。

4.4 作成後に実行するコマンド

ユーザ・アカウントを作成する度にコマンドを実行することができま す。ここに引数も含めて絶対パスでコマンドを指定して下さい。

Note that this command is called after the account has been created and committed in the password database (/etc/passwd). The output and error codes of the command are logged in the "Linuxconf's logs".

4.5 削除前に実行するコマンド

アカウントをパスワード・データベース(/etc/passwd)から 削除する前に実行するコマンドを指定することができます。出力およ びエラーコードもログに記録されます。 If any error is detected, the user will be allowed to see the logs and will be asked if the accounts should be deleted.


次のページ 前のページ 目次へ