Summary of modifying file permissions and User Group management in linux

Source: Internet
Author: User
Commands frequently used in linux to modify file permissions and User Group management summary are as follows. Modify the user of the hosts file to us... linux. modify the file permissions and frequently used commands in the user group management summary. Modify the group to gourp1chgrp gourp1 test.txt 2.chownmodified file owner. modify the user of test.txt file to user1chown user1 test.txt modify the user of test.txt and chown user1: group1 test.txt 3. chmod modify File attributes chmod 755 testchmod u + x testchmod u-x testchmod g + x test 4. usrmod: modify the user group. Generally, you only need to add the current user to another group to usrmod-a-G group1 user1. if you want to completely change the group to which the user belongs, use usrmod-g group1 user1.
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.