2007-10-07 17:14:51 +05:30
|
|
|
|
.\" $Id: chsh.1,v 1.4 2001/01/27 02:55:54 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
|
|
|
|
|
chsh \- zmie<69> pow<6F>ok<6F> zg<7A>oszeniow<6F>
|
|
|
|
|
.SH SK<EFBFBD>ADNIA
|
|
|
|
|
.TP 5
|
2007-10-07 17:14:51 +05:30
|
|
|
|
\fBchsh\fR [\fB-s\fR \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
|
|
|
|
|
musi by<62> uj<75>ta w \fI/etc/shells\fR, chyba <20>e polecenie \fBchsh\fR wywo<77>ywane
|
|
|
|
|
jest przez superu<72>ytkownika, w<>wczas mo<6D>e by<62> podana nazwa dowolnego polecenia.
|
|
|
|
|
U<EFBFBD>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<EFBFBD> przypadkowa zmiana na pow<6F>ok<6F> ograniczon<6F> uniemo<6D>liwi u<>ytkownikowi
|
|
|
|
|
jak<EFBFBD>kolwiek zmian<61> pow<6F>oki logowania, nawet z powrotem na dotychczasow<6F>.
|
|
|
|
|
.PP
|
|
|
|
|
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. Wprowad<61> now<6F> warto<74><6F>
|
|
|
|
|
do pola lub pozostaw je puste, by pozostawi<77> aktualn<6C> warto<74><6F>.
|
|
|
|
|
Bie<EFBFBD><EFBFBD>ca warto<74><6F> wy<77>wietlana jest pomi<6D>dzy par<61> znacznik<69>w \fB[ ]\fR.
|
|
|
|
|
.SH PLIKI
|
|
|
|
|
.IR /etc/passwd " - informacja o kontach u<>ytkownik<69>w"
|
|
|
|
|
.br
|
|
|
|
|
.IR /etc/shells " - lista dozwolonych pow<6F>ok zg<7A>oszeniowych"
|
|
|
|
|
.SH ZOBACZ TAK<EFBFBD>E
|
|
|
|
|
.BR chfn (1),
|
|
|
|
|
.BR passwd (5)
|
|
|
|
|
.SH AUTOR
|
|
|
|
|
Julianne Frances Haugh (jockgrrl@ix.netcom.com)
|
|
|
|
|
.SH OD T<EFBFBD>UMACZA
|
|
|
|
|
Niniejsza dokumentacja opisuje polecenie wchodz<64>ce w sk<73>ad pakietu
|
|
|
|
|
shadow-password.
|
|
|
|
|
Istnieje wiele program<61>w i skrypt<70>w do zarz<72>dzania kontami
|
|
|
|
|
u<EFBFBD>ytkownik<EFBFBD>w czy grup. Z uwagi na powtarzaj<61>ce si<73> nazwy polece<63>, upewnij
|
|
|
|
|
si<EFBFBD>, <20>e korzystasz z w<>a<EFBFBD>ciwej dokumentacji.
|