2007-10-07 17:15:23 +05:30
|
|
|
|
.\" $Id: chsh.1,v 1.7 2003/04/26 13:24:15 kloczek Exp $
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.\" {PTM/WK/1999-09-25}
|
|
|
|
|
.\" Copyright 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.
|
|
|
|
|
.TH CHSH 1
|
|
|
|
|
.SH NAZWA
|
2007-10-07 17:15:14 +05:30
|
|
|
|
chsh \- zmiana pow<6F>oki zg<7A>oszeniowej
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.SH SK<EFBFBD>ADNIA
|
|
|
|
|
.TP 5
|
2007-10-07 17:15:14 +05:30
|
|
|
|
\fBchsh\fR
|
|
|
|
|
[\fB-s \fIpow<EFBFBD>oka\fR] [\fIu<EFBFBD>ytkownik\fR]
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.SH OPIS
|
|
|
|
|
\fBchsh\fR zmienia pow<6F>ok<6F> zg<7A>oszeniow<6F> u<>ytkownika.
|
|
|
|
|
Okre<EFBFBD>la nazw<7A> pocz<63>tkowego polecenia zg<7A>oszeniowego u<>ytkownika.
|
|
|
|
|
Zwyk<EFBFBD>y u<>ytkownik mo<6D>e zmieni<6E> wy<77><79>cznie pow<6F>ok<6F> zg<7A>oszeniow<6F> w<>asnego konta,
|
|
|
|
|
superu<EFBFBD>ytkownik mo<6D>e zmieni<6E> pow<6F>ok<6F> zg<7A>oszeniow<6F> dla dowolnego konta.
|
|
|
|
|
.PP
|
|
|
|
|
Jedynym ograniczeniem na<6E>o<EFBFBD>onym na pow<6F>ok<6F> zg<7A>oszeniow<6F> jest to, <20>e jej nazwa
|
2007-10-07 17:15:14 +05:30
|
|
|
|
musi by<62> wymieniona w \fI/etc/shells\fR, chyba <20>e polecenie \fBchsh\fR
|
|
|
|
|
wywo<EFBFBD>ywane jest przez superu<72>ytkownika - w<>wczas mo<6D>e by<62> podana dowolna
|
|
|
|
|
nazwa. U<>ytkownicy kont z ograniczon<6F> pow<6F>ok<6F> logowania nie mog<6F> jej zmienia<69>.
|
|
|
|
|
Odradza si<73> z tego powodu umieszczanie \fB/bin/rsh\fR w pliku
|
|
|
|
|
\fI/etc/shells\fR, gdy<64> przypadkowa zmiana na pow<6F>ok<6F> ograniczon<6F> uniemo<6D>liwi
|
|
|
|
|
u<EFBFBD>ytkownikowi jak<61>kolwiek zmian<61> pow<6F>oki logowania, nawet z powrotem na
|
|
|
|
|
dotychczasow<EFBFBD>.
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.PP
|
2007-10-07 17:15:14 +05:30
|
|
|
|
Je<EFBFBD>eli nie podano opcji \fB-s\fR, to \fBchsh\fR dzia<69>a w trybie interaktywnym,
|
|
|
|
|
proponuj<EFBFBD>c u<>ytkownikowi bie<69><65>c<EFBFBD> pow<6F>ok<6F> logowania. Wprowadzenie nowej
|
|
|
|
|
warto<EFBFBD>ci powoduje zmian<61> pow<6F>oki, a podanie warto<74>ci pustej pozostawia bie<69><65>c<EFBFBD>
|
|
|
|
|
pow<EFBFBD>ok<EFBFBD>. Bie<69><65>ca pow<6F>oka wy<77>wietlana jest w nawiasach \fB[ ]\fR.
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.SH PLIKI
|
2007-10-07 17:15:23 +05:30
|
|
|
|
\fI/etc/passwd\fR \- informacja o kontach u<>ytkownik<69>w
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.br
|
2007-10-07 17:15:23 +05:30
|
|
|
|
\fI/etc/shells\fR \- lista dozwolonych pow<6F>ok zg<7A>oszeniowych
|
2007-10-07 17:14:44 +05:30
|
|
|
|
.SH ZOBACZ TAK<EFBFBD>E
|
|
|
|
|
.BR chfn (1),
|
|
|
|
|
.BR passwd (5)
|
|
|
|
|
.SH AUTOR
|
2007-10-07 17:15:14 +05:30
|
|
|
|
Julianne Frances Haugh <jockgrrl@ix.netcom.com>
|