Linux Privileges in depth introduction (to Be continued)

Source: Internet
Author: User

Rwxr-xr-x Each of the three groups is a group of front (RWX) groups that represent the group (r-x) in the middle of the owner (user Group) (Group of user groups); the latter group (R-X) represents other groups (other)
WhoAmI Show Current User

Useradd

  • option:

    • -c comment specifies an annotated description.

    • -d directory Specifies the home directory, and if this directory does not exist, use the-M option, You can create a home directory.

    • -g user group specifies the user group to which the user belongs.

    • -g user group, user group specifies the additional group to which the user belongs.

    • -s shell file specifies the user's login shell.

    • -u user number specifies the user's user number, and if the-o option is available, You can reuse the other user's identification number.

PASSWD
  • -l lock the password, that is, disable the account.

  • -u password unlocked.

  • -d make Account no password.

  • -f force the user to change the password the next time they log on

groupadd

  • -g GID specifies a new group identification number for the user group.

  • -o is used in conjunction with-G option, The new GID for the user group can be the same as the GID for the user group already in the system.

  • -n new user Group change user group name to new name

  • linux Common file Permissions conclusion

    File deletion principle and description

    Delete the text actually delete the file name

    (the file name corresponding to the inode, such as the file name does not have the system mechanism to reclaim the inode, so that other new files can be used and its corresponding space)


    Cat/etc/redhat-release View system versions (version)


    Linux Privileges in depth introduction (to Be continued)

    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.