93 lines
3.6 KiB
Groff
93 lines
3.6 KiB
Groff
.\"$Id: newgrp.1,v 1.5 2003/04/28 02:14:00 kloczek Exp $
|
|
.\" 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 <furutaka@Flux.tokai.jaeri.go.jp>
|
|
.\" Updated & Modified Sun 3 Mar 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
|
|
.\" Modified Tue 16 Sep 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
|
|
.\"
|
|
.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
|
|
¤ÈƱÍͤËÆ°ºî¤¹¤ë¤¬¡¢¥³¥Þ¥ó¥É¤ò¼õ¤±ÉÕ¤±¤ë¡£
|
|
¤³¤Î¥³¥Þ¥ó¥É¤Ï Bourne ¥·¥§¥ë¤Ç¼Â¹Ô¤µ¤ì¤ë¡£
|
|
¥³¥Þ¥ó¥É¤¬Ê£¿ô¤Îñ¸ì¤«¤é¤Ê¤ë¾ì¹ç¤Ï¡¢
|
|
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 <jockgrrl@ix.netcom.com>
|