2007-10-07 17:15:14 +05:30
|
|
|
|
.\" $Id: newgrp.1,v 1.7 2002/03/09 19:24:25 ankry Exp $
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.\" {PTM/WK/1999-09-15}
|
|
|
|
|
.\" 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.
|
|
|
|
|
.TH NEWGRP 1
|
|
|
|
|
.SH NAZWA
|
2007-10-07 17:15:14 +05:30
|
|
|
|
newgrp \- zalogowanie do nowej grupy
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.br
|
2007-10-07 17:15:14 +05:30
|
|
|
|
sg \- wykonanie polecenia z innym ID grupy
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.SH SK<EFBFBD>ADNIA
|
2007-10-07 17:15:14 +05:30
|
|
|
|
\fBnewgrp\fR [\fB-\fR] [\fIgrupa\fR]
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.br
|
2007-10-07 17:15:14 +05:30
|
|
|
|
\fBsg\fR [\fB-\fR] [\fIgrupa\fR [[\fB-c\fR] \fIpolecenie\fR]]
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.SH OPIS
|
|
|
|
|
.B newgrp
|
2007-10-07 17:15:14 +05:30
|
|
|
|
s<EFBFBD>u<EFBFBD>y do zmiany bie<69><65>cego identyfikatora grupy (GID) podczas sesji.
|
|
|
|
|
W przypadku podania opcji \fB\-\fR <20>rodowisko u<>ytkownika zostanie
|
|
|
|
|
ponownie zainicjowane, tak jak w<>wczas, gdy u<>ytkownik si<73> loguje. Je<4A>eli
|
|
|
|
|
opcja \fB\-\fR nie zostanie u<>yta, to bie<69><65>ce <20>rodowisko, <20><>cznie z bie<69><65>cym
|
|
|
|
|
katalogiem roboczym, pozostaje niezmienione.
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.PP
|
2007-10-07 17:15:14 +05:30
|
|
|
|
\fBnewgrp\fR zmienia bie<69><65>cy rzeczywisty identyfikator grupy na identyfikator
|
|
|
|
|
podanej grupy lub, je<6A>li nie podano nazwy grupy, na identyfikator grupy
|
|
|
|
|
domy<EFBFBD>lnej, wyszczeg<65>lnionej w \fI/etc/passwd\fR. Je<4A>eli grupa posiada has<61>o,
|
|
|
|
|
za<EFBFBD> u<>ytkownik nie ma has<61>a b<>d<EFBFBD> nie jest jej cz<63>onkiem, to zostanie poproszony
|
2007-10-07 17:14:51 +05:30
|
|
|
|
o podanie has<61>a. Je<4A>eli has<61>o grupy jest puste za<7A> u<>ytkownik nie jest jej
|
|
|
|
|
cz<EFBFBD>onkiem, to efektem b<>dzie odmowa dost<73>pu.
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.PP
|
2007-10-07 17:15:14 +05:30
|
|
|
|
Polecenie fBsg\fR dzia<69>a podobnie do \fBnewgrp\fR, z tym <20>e mo<6D>na mu poda<64>
|
|
|
|
|
polecenie. Podane polecenie zostanie wykonane przy u<>yciu pow<6F>oki Bourne'a.
|
|
|
|
|
W przypadku wi<77>kszo<7A>ci pow<6F>ok, z kt<6B>rych \fBsg\fR mo<6D>e zosta<74> uruchomione,
|
|
|
|
|
polecenie sk<73>adaj<61>ce si<73> z wielu s<><73>w nale<6C>y umie<69>ci<63> w cudzys<79>owach.
|
|
|
|
|
Inna r<><72>nica pomi<6D>dzy \fBnewgrp\fR a \fBsg\fR polega na tym, <20>e niekt<6B>re
|
|
|
|
|
pow<EFBFBD>oki traktuj<75> \fBnewgrp\fR w spos<6F>b specjalny, zast<73>puj<75>c siebie przez
|
|
|
|
|
now<EFBFBD> kopi<70> pow<6F>oki, kt<6B>r<EFBFBD> tworzy \fBnewgrp\fR. Nie zdarza si<73> to w przypadku
|
|
|
|
|
\fBsg\fR, wi<77>c po zako<6B>czeniu \fBsg\fR u<>ytkownik powraca do swego
|
|
|
|
|
poprzedniego identyfikatora grupy.
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.SH PLIKI
|
2007-10-07 17:15:14 +05:30
|
|
|
|
/etc/passwd \- informacja o kontach u<>ytkownik<69>w
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.br
|
2007-10-07 17:15:14 +05:30
|
|
|
|
/etc/group \- informacja o grupach
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.SH ZOBACZ TAK<EFBFBD>E
|
|
|
|
|
.BR id (1),
|
2007-10-07 17:15:14 +05:30
|
|
|
|
.BR login (1),
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.BR su (1)
|
|
|
|
|
.SH AUTOR
|
2007-10-07 17:15:14 +05:30
|
|
|
|
Julianne Frances Haugh <jockgrrl@ix.netcom.com>
|