OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / shadow / draft / man1 / chsh.1
1 .\"$Id: chsh.1,v 1.8 2002/03/09 19:22:29 ankry Exp $
2 .\" Copyright 1990, Julianne Frances Haugh
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
14 .\"    may be used to endorse or promote products derived from this software
15 .\"    without specific prior written permission.
16 .\"
17 .\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
18 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 .\" ARE DISCLAIMED.  IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
21 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 .\" SUCH DAMAGE.
28 .\"
29 .\" Japanese Version Copyright (c) 1997 Kazuyoshi Furutaka
30 .\"         all rights reserved.
31 .\" Translated Fri Feb 14 23:06:00 JST 1997
32 .\"         by Kazuyoshi Furutaka <furutaka@Flux.tokai.jaeri.go.jp>
33 .\" Modified Tue 16 Sep 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
34 .\"
35 .TH CHSH 1
36 .\"O .SH NAME
37 .\"O chsh \- change login shell
38 .SH Ì¾Á°
39 chsh \- ¥í¥°¥¤¥ó¥·¥§¥ë¤òÊѹ¹¤¹¤ë
40 .\"O .SH SYNOPSIS
41 .SH ½ñ¼°
42 .TP 5
43 \fBchsh\fR
44 [\fB-s \fIlogin_shell\fR] [\fIuser\fR]
45 .\"O .SH DESCRIPTION
46 .SH ÀâÌÀ
47 .\"O \fBchsh\fR changes the user login shell.
48 .\"O This determines the name of the user's initial login command.
49 .\"O A normal user may only change the login shell for her own account,
50 .\"O the super user may change the login shell for any account.
51 \fBchsh\fR ¤Ï¥æ¡¼¥¶¤Î¥í¥°¥¤¥ó¥·¥§¥ë¤òÊѹ¹¤¹¤ë¡£
52 ¤³¤ì¤Ë¤è¤Ã¤Æ¡¢¥æ¡¼¥¶¤¬¥í¥°¥¤¥ó¤·¤ÆºÇ½é¤Ë¼Â¹Ô¤µ¤ì¤ë¥³¥Þ¥ó¥É¤¬·è¤Þ¤ë¡£
53 °ìÈ̥桼¥¶¤Ï¼«Ê¬¤Î¥¢¥«¥¦¥ó¥È¤Î¥í¥°¥¤¥ó¥·¥§¥ë¤Î¤ß¤òÊѹ¹¤Ç¤­¤ë¡£
54 ¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤ÏÁ´¤Æ¤Î¥¢¥«¥¦¥ó¥È¤Î¥í¥°¥¤¥ó¥·¥§¥ë¤òÊѹ¹¤Ç¤­¤ë¡£
55 .PP
56 .\"O The only restrictions placed on the login shell is that the
57 .\"O command name must be listed in \fI/etc/shells\fR, unless the
58 .\"O invoker is the super-user, and then any value may be added.
59 .\"O An account with a restricted login shell may not change
60 .\"O her login shell.
61 .\"O For this reason, placing \fB/bin/rsh\fR in \fI/etc/shells\fR
62 .\"O is discouraged since accidentally changing to a restricted
63 .\"O shell would prevent the user from every changing her login
64 .\"O shell back to its original value.
65 ¥í¥°¥¤¥ó¥·¥§¥ë¤Ï¡¢
66 ¥³¥Þ¥ó¥É̾¤¬ \fI/etc/shells\fR ¤Ëµ­ºÜ¤µ¤ì¤Æ¤¤¤ì¤Ð¤Ê¤ó¤Ç¤âÎɤ¤¡£
67 ¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Î¾ì¹ç¤Ï¤³¤ÎÀ©¸Â¤Ï¤Ê¤¯¡¢¤¤¤«¤Ê¤ëÃͤǤâ»ØÄê¤Ç¤­¤ë¡£
68 µ¡Ç½¤òÀ©¸Â¤µ¤ì¤¿¥í¥°¥¤¥ó¥·¥§¥ë¤òÍѤ¤¤Æ¤¤¤ë¥¢¥«¥¦¥ó¥È¤«¤é¤Ï¡¢
69 ¥í¥°¥¤¥ó¥·¥§¥ë¤òÊѹ¹¤Ç¤­¤Ê¤¤¤«¤â¤·¤ì¤Ê¤¤¡£
70 ¤³¤ÎÍýͳ¤«¤é¡¢
71 \fB/bin/rsh\fR ¤Ï \fI/etc/shells\fR ¤Ë¤Ï½ñ¤«¤Ê¤¤¤Û¤¦¤¬Îɤ¤¡£
72 ¸í¤Ã¤Æµ¡Ç½¤¬À©¸Â¤µ¤ì¤¿¥·¥§¥ë¤ËÊѹ¹¤·¤Æ¤·¤Þ¤¦¤È¡¢
73 ¥í¥°¥¤¥ó¥·¥§¥ë¤ò¸µ¤Î¤â¤Î¤ËÌ᤻¤Ê¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¦¤«¤é¤Ç¤¢¤ë¡£
74 .PP
75 .\"O If the \fB-s\fR option is not selected, \fBchsh\fR operates in an interactive
76 .\"O fashion, prompting the user with the current login shell.
77 .\"O Enter the new value to change the shell, or leave the line blank to use
78 .\"O the current one.
79 .\"O The current shell is displayed between a pair of \fB[ ]\fR marks.
80 \fB-s\fR ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢
81 \fBchsh\fR ¤ÏÂÐÏÃŪ¤ËÆ°ºî¤¹¤ë¡£
82 ¥æ¡¼¥¶¤Î¸½ºß¤Î¥í¥°¥¤¥ó¥·¥§¥ë¤òɽ¼¨¤·¡¢¿·¤·¤¤ÃͤÎÆþÎϤòÂ¥¤¹¡£
83 ÀßÄêÃͤòÊѹ¹¤¹¤ë¤Ê¤é¿·¤·¤¤ÃͤòÆþÎϤ·¡¢
84 ¸½ºß¤ÎÃͤò»È¤¦¤Ê¤é¶õ¹Ô¤Î¤Þ¤Þ¥ê¥¿¡¼¥ó¥­¡¼¤ò²¡¤»¤Ð¤è¤¤¡£
85 ¸½ºß¤Î¥·¥§¥ë¤Ï \fB[ ]\fR µ­¹æ¤Î´Ö¤Ëɽ¼¨¤µ¤ì¤ë¡£
86 .\"O .SH FILES
87 .SH ¥Õ¥¡¥¤¥ë
88 .\"O /etc/passwd \- user account information
89 /etc/passwd \- ¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¾ðÊó
90 .br
91 .\"O /etc/shells \- list of valid login shells
92 /etc/shells \- »ØÄê¤Ç¤­¤ë¥í¥°¥¤¥ó¥·¥§¥ë¤Î¥ê¥¹¥È
93 .\"O .SH SEE ALSO
94 .SH ´ØÏ¢¹àÌÜ
95 .BR chfn (1),
96 .BR passwd (5)
97 .\"O .SH AUTHOR
98 .SH Ãø¼Ô
99 Julianne Frances Haugh <jockgrrl@ix.netcom.com>