NAME
chsh - change login shell
SYNOPSIS
chsh [options] [LOGIN]
DESCRIPTION
The chsh command changes the user login shell. This determines the name
of the users initial login command. A normal user may only change the
login shell for her own account, the superuser may change the login
shell for any account.
OPTIONS
The options which apply to the chsh command are:
-h, --help
Display help message and exit.
-s, --shell SHELL
The name of the users new login shell. Setting this field to blank
causes the system to select the default login shell.
FILES
/etc/passwd
User account information.
/etc/shells
List of valid login shells.
/etc/login.defs
Shadow password suite configuration.
$ chsh -s /bin/bash 这样即可改变
或者在/etc/passwd里进行更改
racle:x:1001:1001::/home/oracle:/bin/sh 成即可
racle:x:1001:1001::/home/oracle:/bin/bash
oracle
chsh - change login shell
SYNOPSIS
chsh [options] [LOGIN]
DESCRIPTION
The chsh command changes the user login shell. This determines the name
of the users initial login command. A normal user may only change the
login shell for her own account, the superuser may change the login
shell for any account.
OPTIONS
The options which apply to the chsh command are:
-h, --help
Display help message and exit.
-s, --shell SHELL
The name of the users new login shell. Setting this field to blank
causes the system to select the default login shell.
FILES
/etc/passwd
User account information.
/etc/shells
List of valid login shells.
/etc/login.defs
Shadow password suite configuration.
$ chsh -s /bin/bash 这样即可改变
或者在/etc/passwd里进行更改
racle:x:1001:1001::/home/oracle:/bin/sh 成即可
racle:x:1001:1001::/home/oracle:/bin/bash
oracle
本文介绍如何利用chsh命令来更改用户的登录Shell。正常用户仅能更改自己的登录Shell,而超级用户可以更改任意账户的登录Shell。文章还提到了相关配置文件,如/etc/passwd、/etc/shells等。
450

被折叠的 条评论
为什么被折叠?



