From 333f7ecfa3e040191c66b2b92f6c117ca2cbac1d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 14:50:00 +0200 Subject: Adding upstream version 1:4.8.1. Signed-off-by: Daniel Baumann --- man/ja/man1/newgrp.1 | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 man/ja/man1/newgrp.1 (limited to 'man/ja/man1/newgrp.1') diff --git a/man/ja/man1/newgrp.1 b/man/ja/man1/newgrp.1 new file mode 100644 index 0000000..a60af04 --- /dev/null +++ b/man/ja/man1/newgrp.1 @@ -0,0 +1,92 @@ +.\"$Id$ +.\" Copyright 1991, 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 & Modified Sun 3 Mar 2002 by NAKANO Takeo +.\" Modified Tue 16 Sep 2002 by NAKANO Takeo +.\" +.TH NEWGRP 1 +.SH 名前 +newgrp \- 新しいグループにログインする +.br +sg \- 別のグループ ID でコマンドを実行する +.SH 書式 +\fBnewgrp\fR [\fB\-\fR] [\fIgroup\fR] +.br +\fBsg\fR [\fB\-\fR] [\fIgroup\fR [[\fB\-c\fR] \fIcommand\fR]] +.SH 説明 +.B newgrp +はログインセッション中に現在のグループ ID を変更するために用いられる。 +オプションとして \fB\-\fR フラグを与えた場合は、 +新たにログインしたのと同じ様に環境が再初期化される。 +そうでない場合は、現在の作業ディレクトリを含めて、 +現在の環境は変化しない。 +.PP +.B newgrp +は現在の実グループ ID を、指定したグループに +(グループ名を指定しなかった場合は \fI/etc/passwd\fR +に記載されたデフォルトのグループに) 変更する。 +ユーザにはパスワードがなくグループにはある場合、 +あるいはユーザがグループのメンバーではなく +グループにパスワードがある場合には、 +そのユーザはパスワードの入力を求められる。 +グループのパスワードが設定されておらず、 +かつユーザがグループのメンバーでない場合は、 +アクセスは拒否される。 +.PP +.B sg +コマンドは +.B newgrp +と同様に動作するが、コマンドを受け付ける。 +このコマンドは \fB/bin/sh\fR シェルで実行される。 +コマンドが複数の単語からなる場合は、 +sg の実行元となるであろうシェルのほとんどにおいて、 +これらをクォートする必要があるだろう。 +.BR newgrp " と " sg +のもう一つの違いは、 +特定のシェルが \fBnewgrp\fR を特別に扱う点にある。 +このようなシェルは、自分自身を +.B newgrp +が生成した新しい実体と置き換える。このようなことは +.B sg +では起きないので、 +.B sg +コマンドから戻った際には以前のグループ ID に戻る。 +.SH ファイル +\fI/etc/passwd\fR \- ユーザアカウント情報 +.br +\fI/etc/group\fR \- グループ情報 +.SH 関連項目 +.BR id (1), +.BR login (1), +.BR su (1) +.SH 著者 +Julianne Frances Haugh -- cgit v1.2.3