Linux User Management Command questions-useradd < a >

Source: Internet
Author: User

There are a few problems today when practicing the Useradd command to add Linux ordinary users.

1, after adding the user, using the usedel command to delete the user and found that the corresponding group was also deleted.

Q, does the Userdel Delete command affect only the basic group of user?


2, add the user to use the-D/XXX/XXX/USERNAME hint cannot create the directory, but can successfully add the user, and can be changed through the SU command users, but will prompt-bash 4.1$, one:

Q, how to solve the problem of prompting-bash 4.1$?

Q, switch user after the use of the W command to see the current user two, why the root user, this is to say that the user did not completely switch?


Q, how do I see which users and groups a file or directory belongs to?



I am a novice Linux, ask the question may be a little white, I forgive you.


Figure One:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/2B/wKiom1Xd8ZXwrhxsAATtq8CCIqw221.jpg "title=" Unable to switch to directory. png "alt=" wkiom1xd8zxwrhxsaattq8cciqw221.jpg "/>


Figure II:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/27/wKioL1Xd9UGRZelXAAJ0ux5FEzY643.jpg "title=" user Switch. JPG "alt=" Wkiol1xd9ugrzelxaaj0ux5fezy643.jpg "/>

This article from "Make money to buy sugar to eat" blog, reprint please contact the author!

Linux User Management Command questions-useradd < a >

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.