使い方: chsh [ -s シェル ] [ --list-shells ] [ --help ] [ --version ] [ ユーザ名 ]
Usage: chsh [ -s shell ] [ --list-shells ] [ --help ] [ --version ] [ username ]
CHSH(1) CHSH(1)
名前
chsh - ログインシェルを変更する
書式
chsh [-s login_shell] [user]
説明
chsh はユーザのログインシェルを変更する。これによって、ユーザがログイン
して最初に実行されるコマンドが決まる。一般ユーザは自分のアカウントの ロ
グ インシェルのみを変更できる。スーパーユーザは全てのアカウントのログイ
ンシェルを変更できる。
ログインシェルは、コマンド名が /etc/shells に記載されていればなんでも良
い 。スーパーユーザの場合はこの制限はなく、いかなる値でも指定できる。機
能を制限されたログインシェルを用いているアカウントからは、ログインシ ェ
ルを変更できないかもしれない。この理由から、 /bin/rsh は /etc/shells に
は書かないほうが良い。誤って機能が制限されたシェルに変更してしまうと 、
ログインシェルを元のものに戻せなくなってしまうからである。
-s オプションを指定しなかった場合は、 chsh は対話的に動作する。ユーザの
現在のログインシェルを表示し、新しい値の入力を促す。設定値を変更する な
ら 新しい値を入力し、現在の値を使うなら空行のままリターンキーを押せばよ
い。現在のシェルは [ ] 記号の間に表示される。
ファイル
/etc/passwd - ユーザアカウント情報
/etc/shells - 指定できるログインシェルのリスト
関連項目
chfn(1), passwd(5)
著者
Julianne Frances Haugh
CHSH(1) Linux Reference Manual CHSH(1)
NAME
chsh - change your login shell
SYNOPSIS
chsh [-s shell] [-l] [-u] [-v] [username]
DESCRIPTION
chsh is used to change your login shell. If a shell is not given on
the command line, chsh prompts for one.
VALID SHELLS
chsh will accept the full pathname of any executable file on the sys-
tem. However, it will issue a warning if the shell is not listed in
the /etc/shells file. On the other hand, it can also be configured
such that it will only accept shells listed in this file, unless you
are root.
OPTIONS
-s, --shell shell
Specify your login shell.
-l, --list-shells
Print the list of shells listed in /etc/shells and exit.
-u, --help
Print a usage message and exit.
-v, --version
Print version information and exit.
SEE ALSO
login(1), passwd(5), shells(5)
AUTHOR
Salvatore Valente
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa