Commands related to linux User Permissions

Source: Internet
Author: User

Commands related to linux User Permissions 1. Create group groupadd test modify group groupmod-n test2 test change name to test2 Delete Group groupdel test view group groups root 2. user operation: -B: set the basic path as the user's login directory usermod-B/home root;-c comment on the user... -D: Set the user's logon directory usermod-d/home root;-D: Change The usermod-D-e to set the user's validity period usermod-e 2013-2-1;-f: After the user expires, make the password invalid usermod-f root;-g make the user belong to only a group of usermod-f www group2;-G make the user join a group of usermod-f www group1; -h help-k (skel_dir) to specify other skel directories (directories that store User Startup files)-k (key = value) -m automatically creates a login directory-l does not add users to the lastlog file-M does not automatically create a login directory-r creates a system account-o allows users to have the same UID-p for new users use the encrypted password; -s shell at login... -U specifies a UID for the new user;-Z deletes the user: userdel www; views the user: w/who to view its user name: whoami to view the individual user information: finger root, id root; view User Logon records: last and lastb (successful and unsuccessful)

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.