linux 更改shell

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章