Edit file access rights under Ubuntu chmod 777-r *

Source: Internet
Author: User

This article goes from:

Personal advice

under Ubuntu, modify the directory Permissions command as follows:
chmod name(only the owner has read and write permissions)
chmod 644 Name(the owner has read and write permissions, the group user only has Read permissions)
chmod name(only the owner has permission to read and write and execute)
chmod 666 Name(Everyone has access to read and write)
chmod 777 Name(Everyone has access to read and write and execute)
where name refers to the file name or to the directory name.

The entire command is in the form
chmodxxx (owner) xxx (group user) xxx (other users)

each bit of a three-digit number represents a user-type permission setting. The value is 0~7, which is the binary [000]~[111].
each bit of this three-bit binary number represents read, write, and execute permissions respectively.
If 000 means none of the three permissions, and 100 means read-only. In this way, we have the following correspondence:
0 [000] no permissions
4 [100] read-only permission
6 [110] Read and Write permissions
7 [111] read, write, execute permissions


recursively Modify permission methods for all files in a directory: Enter the directory input command chmod 777-r * (where-R means recursive processing, * represents all files) orchmod 777-r/home/abc/dirctoryname, this command does not go into the directory,/home/abc/dirctoryname is the directory path.

Edit file access rights under Ubuntu chmod 777-r *

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.