Adduser creation in ubuntu

Source: Internet
Author: User

The problem of creating a new user by adduser under ubuntu was encountered yesterday. I used the user's ub and created a new user by using useradd, however, when switching to this user, the terminal does not display as usual [user @ hostname ~] Only one $ character is displayed, and directories and scripts are not identified by special colors. I checked the information to solve the problem. First, check the configuration file/etc/passwd to see if your new user is using bash. If not, change it.
Www.2cto.com and check whether there is any hidden file 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. Run the following two Commands: (I explained from the perspective of the new user identity) echo '[\ u @ \ h \ W] \ $'> ~ /. Bashrcsource ~ /. After bashrc is restarted, it will be OK. In addition, the newly created user may not be able to use sudo, prompting you that the user is not in The sudo list. This problem is well solved. Execute mongodo, find root ALL = (ALL) ALL, add a row below, and set the root in the previous sentence to your username, save and exit.
 

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.