Questions about adding users and user groups

Source: Internet
Author: User
Users and user groups-Linux general technology-Linux technology and application information. For more information, see the following section. I am using REDHAT. It is very strange that I am using the useradd command on the terminal to add a user. I am not prompted to have this command, I don't know if it is related to the shell that the user logs on to. I checked the/etc/passwd file using the cat command and found that/bin/bash is used, more than that, there are a lot of commands that cannot be added as a user group. so I directly changed the system file to add users. I used vim/etc/passwd and vim/etc/shadow to add usernames. A line of ceshi: 501 was added to both files: 501: ceshi:/home/ceshi: /bin/bash and then use mkdis-q/home/ceshi to create the ceshi file. Because the file is run by the root user, chown ceshi/home/ceshi is also used to change the ceshi file. all the folders have the ceshi user. finally, run the command cp/etc/skel/home/ceshi to copy the configuration file. the user is created, but I use the command pa. The error message "User not known to the underlying authentication module" is not displayed when sswd ceshi changes the password for this User. at the same time, I logged on to the X interface. When I opened "users and groups", I couldn't open a dialog box, which probably meant that a user did not set the password to be insecure, sorry for the poor English. so I deleted the user in those configuration files. it's really annoying. You have some experience!

For commands such as useradd, it is found that some commands can be run only after the root user logs in. Even if the su command is used in the terminal to upgrade to the root permission, it still does not work. What is the problem?

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.