.\"$Id: su.1,v 1.11 2002/03/09 19:22:30 ankry Exp $ .\" Copyright 1989 - 1990, Julianne Frances Haugh .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" Japanese Version Copyright (c) 1997 Kazuyoshi Furutaka .\" all rights reserved. .\" Translated Fri Feb 14 23:06:00 JST 1997 .\" by Kazuyoshi Furutaka .\" Updated Wed Apr 26 JST 2000 by Kentaro Shirakata .\" Updated Fri Jan 12 JST 2001 by Kentaro Shirakata .\" Updated Mon Mar 4 JST 2002 by Kentaro Shirakata .\" Modified Tue 16 Sep 2002 by NAKANO Takeo .\" .TH SU 1 .\"O .SH NAME .SH 名前 .\"O su \- change user ID or become super-user su \- ユーザIDを変更する。またはスーパーユーザになる .\"O .SH SYNOPSIS .SH 書式 \fBsu\fR [\fB-\fR] [\fIusername\fR [\fIargs\fR]] .\"O .SH DESCRIPTION .SH 説明 .\"O \fBsu\fR is used to become another user during a login session. Invoked .\"O without a username, \fBsu\fR defaults to becoming the super user. The .\"O optional argument \fB\-\fR may be used to provide an environment similiar to .\"O what the user would expect had the user logged in directly. \fBsu\fR はログインセッション中に別のユーザになるために用いる。 ユーザ名を指定せずに起動した場合、 デフォルトではスーパーユーザの ID に変更する。 オプション引数 \fB\-\fR を用いると、 直接ログインした場合と同じ環境に初期化される。 .PP .\"O Additional arguments may be provided after the username, in which case they .\"O are supplied to the user\'s login shell. In particular, an argument of .\"O \fB-c\fR will cause the next argument to be treated as a command by most .\"O command interpreters. The command will be executed by the shell specified in .\"O \fI/etc/passwd\fR for the target user. ユーザ名の後ろに追加の引数を与えることもでき、 その場合引数はユーザのログインシェルに渡される。 特に、その引数の一つとして \fB-c\fR を渡した場合、 それに続く引数は大部分のコマンドインタプリタにコマンドとして解釈される。 コマンドはそのユーザに (\fI/etc/passwd\fR で) 指定されているシェルで実行される。 .PP .\"O The user will be prompted for a password, if appropriate. Invalid passwords .\"O will produce an error message. All attempts, both valid and invalid, are .\"O logged to detect abuses of the system. 必要な場合には、ユーザにはパスワードの入力が促される。 間違ったパスワードが入力された場合にはエラーメッセージが出力される。 \fIsu\fRしようとした場合は、システムの濫用を検知するために、 それが正しい場合も不正な場合も常に記録が残される。 .PP .\"O The current environment is passed to the new shell. The value of \fB$PATH\fR .\"O is reset to \fB/bin:/usr/bin\fR for normal users, or .\"O \fB/sbin:/bin:/usr/sbin:/usr/bin\fR for the super user. This may be changed .\"O with the \fBENV_PATH\fR and \fBENV_SUPATH\fR definitions in .\"O \fI/etc/login.defs\fR. 現在の環境は新しいシェルに引き継がれる。 ただし \fB$PATH\fR の値は、 通常のユーザでは \fB/bin:/usr/bin\fR に、 スーパーユーザでは \fB/sbin:/bin:/usr/sbin:/usr/bin\fR に再設定される。 これは \fI/etc/login.defs\fR の \fBENV_PATH\fR と \fBENV_SUPATH\fR で変更できる。 .PP .\"O A subsystem login is indicated by the presense of a "*" as the first .\"O character of the login shell. The given home directory will be used as .\"O the root of a new filesystem which the user is actually logged into. サブシステムログインでは、 ログインシェルの最初の文字に "*" を置く。 渡されたホームディレクトリは、 ユーザが実際にログインする新しいファイルシステムのルートとして扱われる。 .\"O .SH CAVEATS .SH 警告 .\"O This version of \fBsu\fR has many compilation options, only some of which .\"O may be in use at any particular site. この版の \fBsu\fR には多くのコンパイル時オプションがあるが、 サイトによってはこの一部しか設定されていないこともある。 .\"O .SH FILES .SH ファイル .\"O /etc/passwd \- user account information /etc/passwd \- ユーザアカウント情報 .br .\"O /etc/shadow \- encrypted passwords and age information /etc/shadow \- 暗号化パスワードと有効期限情報 .br .\"O $HOME/.profile \- initialization script for default shell $HOME/.profile \- デフォルトシェルの初期化スクリプト .\"O .SH SEE ALSO .SH 関連項目 .BR login (1), .BR sh (1), .BR login.defs (5), .BR suauth (5) .\"O .SH AUTHOR .SH 著者 Julianne Frances Haugh