日期:2014-05-16  浏览次数:20593 次

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