To learn more about the Linux system, run the chmod command-Linux general technology-Linux technology and application. Usage: chmod [-cfvR] [-- help] [-- version] mode file...
Note: file calling permissions for Linux/Unix are divided into three levels: file owner, group, and others.
Parameters:
Mode: permission setting string in the following format: [ugoa...] [[+-=] [rwxX]...] [,...], where
U indicates the owner (user) of the file, g indicates that the owner of the file belongs to the same group, and o indicates that the owner of the file belongs to persons other than others, a indicates that all three are (all ).
+ Adds a permission,-Indicates canceling the permission, and = indicates a unique permission.
R indicates readable, w indicates writable, and x indicates executable.
R = 4, w = 2, x = 1
If you want the rwx attribute, 4 + 2 + 1 = 7;
If the rw attribute is required, 4 + 2 = 6;
If you want the rx attribute, 4 + 1 = 5.
Example:
Terminal execution: chmod 777 filename
All used? Chive, scallianz, and others
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