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 *