There is only one $ problem for new users in Linux (Ubuntu ).

Source: Internet
Author: User
Linux (Ubuntu) only has one new user. $ problem version: linuxubuntu1204Server problem: 1. create a new user today: useradd *** 2 and then create a folder with the account in the home directory. The last login will show only one $, unlike the general [Linux (Ubuntu) the new user has only one $ problematic version: linux ubuntu12.04 Server problem: 1. create a user today: useradd *** 2. then, when you log on to the folder created in the home directory with the account, only one $ is displayed, unlike the common [*** @ *** ~]. And some scripts cannot run. The directory is not highlighted in color. I haven't done it for a long time. Finally, let's talk about it with the help of http://www.2cto.com/ OS /201301/184786.html. Method 1. use root to log on 2. check whether the new user permission in the/etc/passwd file is bash. for example, leroy: X: 1000: 1000:/home/leroy: /bin/sh (this is the previous one) and I changed it to leroy: X: 1000: 1000:/home/leroy:/bin/bash
3. then, check the hidden files in the user's home directory. bashrc and. profile files (which can be displayed by ls-A in ub). If not, copy the files in/etc/skel. remember to modify the permissions and owner of the files. 4. add PS1 = '[\ u @ \ h \ W]' to the. bashrc file and add it to source .. For example, source/home/leroy/. bashrc and exit root. if not, log out again.

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.