Linux common commands (iv)

Source: Internet
Author: User

Rights Management Command: chmod only the file owner and root user have this permission.

Mode 1:chmod u g o +-= R W x file or directory

Way 2:chmod r-4 w-2 x-1-r Recursive Change permissions

R W X Three permissions are different for files and directories.

Files: r--can view the file contents directory: r--can list content in a directory

Files: w--can modify the file contents directory: w--can create and delete files in the directory

File: x--can execute file directory: w--can enter directory


Chown: Change the owner of a file or directory (only administrator root and file owner can modify)

Syntax: chown the file or directory the user wants to change

CHGRP: Changing the group to which a file or directory belongs


Umask: Display the default permissions of the new file-s default file permissions are not executable, and the directory of X permission is certain, or you can not go to the directory.

Permission Mask

Linux common commands (iv)

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.