Add User __linux under LINUX

Source: Internet
Author: User

Maybe everyone, like me, have encountered problems like me, we added a new user under Linux, and when we switched to this user, we found that we did not display the new user and hostname we created (not the "user @ Host name"), but just a $ symbol. In order to allow the same problem to meet the parents, to solve this problem. Share your own solutions here.

Under Linux, you should use the USERADD-M username when creating new users, and if you are using the "useradd username" command, you will not generate the corresponding username directory in the home directory. I remember. It's also worth noting that the creation of a good user by default shell is sh, where we should set it to bash. How to set it, at the command terminal, enter:

CHSH User Name

Then in the input/bin/bash can be.

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.