System: Ubuntu 9.04
"After logging in, type CHSH and press <enter> to change the default shell. Depending on the system, you may be asked to enter your login password and the name of the shell to be used. Enter the complete path of the shell to be used. For example, enter/bin/tcsh to change to TC shell. However, you must be the system administrator. In other words, you must log on as the root user. "
According to the teaching material, I enter the "CHSH" command, then enter the password, enter the login shell, and press enter without any prompt, and do not enter the tcsh:
------------------------------------------------
~ $ CHSH
Password:
Changing the username Shell
Enter a new value or press enter to use the default value.
Log on to shell [/bin/tcsh]:/bin/tcsh
~ $
-------------------------------------------------
The same is true for using sudo CHSH:
---------------------------------------------------
~ $ Sudo CHSH
[Sudo] password for username:
Changing the root shell
Enter a new value or press enter to use the default value.
Log on to shell [/bin/tcsh]:/bin/tcsh
~ $
---------------------------------------------------
Enter tcsh on the terminal to enter the tcsh shell, as shown below:
-----------------------------------------------------
~ $ Tcsh
Kxx-desktop: ~>
---------------------------------------------------------
Resolved.
The CHSH command is used to change the shell login. You need to restart it to see the effect.