Commands related to linux user permissions

Source: Internet
Author: User
Linux user permissions related Command 1, create group groupaddtest modify group groupmod-ntest2test will change the name to test2 delete group groupdeltest View Group groupsroot2, user operation:-B set the basic path as the user's... 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)
Related Article

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.