How the shell used by the user in Ubuntu is specified

Source: Internet
Author: User

On the machine to open an account to colleagues, the result of SSH landing, complete, highlighting are not, but my own account can be. The first suspicion is that there is a problem with the. bashrc file setting, compared to 2 user directories, this file does not find a place to be. Search learned that may be used by the shell is different, because the completion is generally through a corresponding completion of the script or built-in complement function, all inferred 2 users use different shell, so in 2 users respectively Echo $SHELL, sure enough, one is/bin/bash, one is/ Bin/sh, and SH is a symbolic link, pointing to/bin/dash,ubuntu by default is dash, generally through the/bin/sh symbolic link to point to, if you want to switch it to bash, execute:

sudo dpkg-reconfigure Dash

Select Yes, no to switch Ubuntu default shell, but this will affect other users, can you specify the shell they use for different users individually? Open/etc/passwd File:

The last field for the user specifies the shell type to be used when the user logs in, and if not specified, the default/bin/sh is used. How do I change this setting?

sudo usermod-s user name Shell type

How the shell used by the user in Ubuntu is specified

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.