.\" $Xorg: sessreg.man,v 1.3 2000/08/17 19:54:15 cpqbld Exp $ .\" Copyright 1994, 1998 The Open Group .\" .\" All Rights Reserved. .\" .\" The above copyright notice and this permission notice shall be included .\" in all copies or substantial portions of the Software. .\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. .\" IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR .\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, .\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR .\" OTHER DEALINGS IN THE SOFTWARE. .\" .\" Except as contained in this notice, the name of The Open Group shall .\" not be used in advertising or otherwise to promote the sale, use or .\" other dealings in this Software without prior written authorization .\" from The Open Group. .\" .\" Copyright (c) 1998, 2001 The X Japanese Documentation Project. .\" .\" Permission is hereby granted, free of charge, to any person obtaining a .\" copy of this software and associated documentation files (the .\" "Software"), to deal in the Software without restriction, including .\" without limitation the rights to use, copy, modify, merge, publish, dis- .\" tribute, sublicense, and/or sell copies of the Software, and to permit .\" persons to whom the Software is furnished to do so, subject to the fol- .\" lowing conditions: .\" .\" The above copyright notice and this permission notice shall be included .\" in all copies or substantial portions of the Software. .\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- .\" ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT .\" SHALL THE X JAPANESE DOCUMENTATION PROJECT BE LIABLE FOR ANY CLAIM, .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. .\" .\" Except as contained in this notice, the name of The X Japanese .\" Documentation Project shall not be used in advertising or otherwise to .\" promote the sale, use or other dealings in this Software without prior .\" written authorization from The X Japanese Documentation Project. .\" .\" X Window System is a trademark of The Open Group. .\" .\" Translated Tue Nov 3 22:52:30 JST 1998 .\" by FUJIWARA Teruyoshi .\" Updated Tue Oct 16 00:34:26 JST 2001 for XFree86 4.1.0 .\" by FUJIWARA Teruyoshi .\" .\" $XFree86: xc/programs/xdm/sessreg.man,v 1.7 2001/04/23 20:31:09 dawes Exp $ .\" .TH SESSREG 1 "Release 6.5" "X Version 11" .SH 名前 .\"0 sessreg \- manage utmp/wtmp entries for non-init clients sessreg \- 非 init クライアントに対する utmp/wtmp エントリの管理 .SH 書式 .B sessreg [-w \fIwtmp-file\fP] [-u \fIutmp-file\fP] [-l \fIline-name\fP] [-h \fIhost-name\fP] [-s \fIslot-number\fP] [-x \fIXservers-file\fP] [-t \fIttys-file\fP] [-a] [-d] \fIuser-name\fP .SH 説明 .PP .\"0 \fISessreg\fP is a simple program for managing utmp/wtmp .\"0 entries for xdm sessions. \fIsessreg\fP は xdm セッションに対する utmp/wtmp エントリを管理する 簡単なプログラムである。 .PP .\"0 System V has a better interface to /etc/utmp than BSD; it .\"0 dynamically allocates entries in the file, instead of writing them at fixed .\"0 positions indexed by position in /etc/ttys. System V は BSD よりも良い /etc/utmp へのインタフェースを持っている。 つまり、/etc/ttys における位置で示される固定位置に書き込むのではなく、ファイル中で動的にエントリを割り当てる。 .PP .\"0 To manage BSD-style utmp files, \fIsessreg\fP has two strategies. In .\"0 conjunction with xdm, the -x option counts the number of lines in /etc/ttys .\"0 and then adds to that the number of the line in the Xservers file which .\"0 specifies the display. The display name must be specified as the .\"0 "line-name" using the -l option. This sum is used as the "slot-number" in .\"0 /etc/utmp that this entry will be written at. In the more general case, the .\"0 -s option specifies the slot-number directly. If for some strange reason .\"0 your system uses a file other that /etc/ttys to manage init, the -t option .\"0 can direct .\"0 \fIsessreg\fP to look elsewhere for a count of terminal sessions. BSD 形式の utmp ファイルを管理するために、\fIsessreg\fP は2つの方法を 使う。xdm を使う場合には、-x オプションを指定すると /etc/ttys の行数が 数えられ、ディスプレイを指定する Xservers ファイル中の行数がこれに加え られる。ディスプレイ名は -l オプションを使って「行の名前」として指定し なければならない。この和は、このエントリが書き込まれる /etc/utmp に おける「スロット番号」として用いられる。より一般的な場合には、-s オプ ションでスロット番号を直接指定する。普通でない何らかの理由により、シス テムが init を管理するために /etc/ttys 以外のファイルを使っている場合、 -t オプションを使うと \fIsessreg\fP に別の場所を調べて端末セッションを 数えるよう指示することができる。 .PP .\"0 Conversely, System V managers will not ever need to use these options (-x, .\"0 -s and -t). To make the program easier to document and explain, .\"0 \fIsessreg\fP accepts the BSD-specific flags in the System V .\"0 environment and ignores them. 一方、System V の管理者はこれらのオプション(-x, -s, -t)を使う必要は全 く無い。プログラムを説明しやすくするため、\fIsessreg\fP は System V に おいてもBSD 特有のオプションを受け付けるが、これは単に無視される。 .PP .\"0 BSD and Linux also have a host-name field in the utmp file which doesn't .\"0 exist in System V. This option is also ignored by the System V version of .\"0 \fIsessreg\fP. BSD も Linux も、System V が持たないホスト名フィールドを utmp ファイルに持ってい る。このオプションは System V 版の \fIsessreg\fP では無視される。 .SH 使用方法 .PP .\"0 In Xstartup, place a call like: Xstartup においては、次のような呼び出しをする: .nf sessreg -a -l $DISPLAY -x /usr/X11R6/lib/xdm/Xservers $USER .fi .\"0 and in Xreset: Xreset においては、次のような呼び出しをする: .nf sessreg -d -l $DISPLAY -x /usr/X11R6/lib/xdm/Xservers $USER .fi .SH オプション .IP "\fB-w\fP \fIwtmp-file\fP" .\"0 This specifies an alternate wtmp file, instead of /usr/adm/wtmp for BSD or .\"0 /etc/wtmp for sysV. The special name "none" disables writing records to .\"0 /usr/adm/wtmp. BSD の場合の /usr/adm/wtmp や System V の場合の /etc/wtmp ではなく、別 の wtmp ファイルを指定する。特別な名前 "none" を指定すると、 /usr/adm/wtmp へのレコード書き込みが無効になる。 .IP "\fB-u\fP \fIutmp-file\fP" .\"0 This specifies an alternate utmp file, instead of "/etc/utmp". The special .\"0 name "none" disables writing records to /etc/utmp. "/etc/utmp" ではなく、別の utmp ファイルを指定する。特別な名前 "none" を指定すると、/etc/utmp へのレコード書き込みが無効になる。 .IP "\fB-l\fP \fIline-name\fP" .\"0 This describes the "line" name of the entry. For terminal sessions, .\"0 this is the final pathname segment of the terminal device filename .\"0 (e.g. ttyd0). For X sessions, it should probably be the local display name .\"0 given to the users session (e.g. :0). If none is specified, the .\"0 terminal name will be determined with ttyname(3) and stripped of leading .\"0 components. エントリの "行" の名前を記述する。端末セッションに対しては、これは端 末のデバイスファイル名の最後のパス名要素である(例えば tty0)。X のセッ ションに対しては、おそらくユーザセッションに与えられたローカルディスプ レイ名となる(例えば :0)。"none" が指定された場合、端末名は ttyname(3) の結果から最後の要素を取り出したものとなる。 .IP "\fB-h\fP \fIhost-name\fP" .\"0 This is set for BSD hosts to indicate that the session was initiated from .\"0 a remote host. In typical xdm usage, this options is not used. これは BSD のホストに対してセットされ、セッションがリモートホストから 起動されたことを示す。普通に xdm を使っている場合には、このオプション は使われない。 .IP "\fB-s\fP \fIslot-number\fP" .\"0 Each potential session has a unique slot number in BSD systems, most are .\"0 identified by the position of the \fIline-name\fP in the /etc/ttys file. BSD システムにおいては、発生する可能性があるセッションは一意に決まるス ロット番号を持っている。そのほとんどは /etc/ttys ファイルの \fIline-name\fP の位置で識別される。 .\"0 This option overrides the default position determined with ttyslot(3). このオプションは ttyslot(3) で決まるデフォルトの位置を上書きする。 .\"0 This option is inappropriate for use with xdm, the -x option is more useful. xmd を使っているときにはこのオプションは適切ではなく、-x オプションの 方が便利である。 .IP "\fB-x\fP \fIXservers-file\fP" .\"0 As X sessions are one-per-display, and each display is entered in this file, .\"0 this options sets the \fIslot-number\fP to be the number of lines in .\"0 the \fIttys-file\fP plus the index into this file that the \fIline-name\fP .\"0 is found. X セッションはディスプレイごとに1つであり、各ディスプレイはこのファイ ルに入っている。このオプションはこれを利用して、\fIttys-file\fP の行数 と、このファイルで \fIline-name\fP が見つかったインデックスを加えた結 果を \fIslot-number\fP にセットする。 .IP "\fB-t\fP \fIttys-file\fP" .\"0 This specifies an alternate file which the \fI-x\fP option will use to count .\"0 the number of terminal sessions on a host. このオプションは、ホスト上の端末セッションの数を\fI-x\fP オプションが 数えるために使う別のファイルを指定する。 .IP "\fB-a\fP" .\"0 This session should be added to utmp/wtmp. このセッションを utmp/wtmp に追加する。 .IP "\fB-d\fP" .\"0 This session should be deleted from utmp/wtmp. One of -a/-d must .\"0 be specified. このセッションを utmp/wtmp から削除する。-a/-d のどちらかを指定しなけ ればならない。 .SH 関連項目 xdm(1) .SH 著者 Keith Packard, MIT X Consortium