Ubuntu grants sudochmod600 & amp; times; (only the owner has permission to read and write) sudochmod644 & amp; times; & amp; times; & amp; times; (the owner has the read and write permissions. group users only have the read permission) sudochmod70 ubuntu grants folder permissions sudo chmod 600 ××× (only the owner has read and write permissions) sudo chmod 644 ××× (the owner has read and write permissions, group users only have read permission) sudo chmod 700 ××× (only the owner has read, write, and execute permissions) sudo chmod 666 ××× (everyone has the permission to read and write) sudo chmod 777 ××× (everyone has the permission to read, write, and execute) ××× indicates the file name (or folder name, but-ld must be added after chmod ). To explain, the form of the entire command is sudo chmod-(representing the type) ××× (owner) ××× (group user) ××× (other users) each digit of the three-digit number represents a user-type permission setting. The value ranges from 0 ~ 7, that is, the binary [000] ~ [111]. Each digit of the three binary numbers represents the read, write, and execution permissions respectively. For example, "000" indicates that no three permissions are available, and "100" indicates read-only. In this way, we have the following correspondence: 0 [000] no permissions 4 [100] read-only permissions 6 [110] read and write permissions 7 [111] read and write execution permissions now let's look at the common usage above. Try to modify the permission by yourself. at last, attach the command ls-l file name for the query file (or folder) permission (change-l to-ld for the folder ).
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.