chmod command Explanation

Source: Internet
Author: User

chmod
Role: Modify the directory or file permissions (= Assignment regardless of whether or not, + Add permissions) The permission of the symbolic link cannot be changed, if the user modifies the permissions on the symbolic link, the change will affect the original file being linked.

Parameter:-r: Recursive modification Processing

-V: Shows the execution process

-H: Only changes are made to the symbolic linked files, and no other related files are changed.

-F: Do not display error messages
Syntax 1:chmod u=rwx,g=r--, o=r--(ugo=r) filename
Syntax 2:chmod 744 filename
Syntax 3:chmod u+x filename

Extension: Linux users are divided into: owners, groups, other users, Linux systems, presets, all accounts in the system and general identity users, as well as root information, are recorded in the/etc/passwd file, each person's password recorded in/etc/shadow File. All the group names are recorded under/etc/group.

Example: chmod u+x,g+w,o=r f01//For file F01 set itself can be executed, the members can write permissions

Chmod-r 764 f01//Modify permissions for all file directories under File F01 to 764

CHMOD-V//Display execution instruction procedure

chmod command Explanation

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.