The CHSH command in Ubuntu cannot change the default shell (solved)

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.