CHMOD 777 is an attribute set for files or folders

Chmod is changing file permissions. That means changing the access rights of the visitor, When changing he can read, write, send message as forum. If you do not change you only have the right to read but no right to write, there may be no reading, or writing … so what is the forum anymore.Chmod to 777 you have the right to read, write, .

CHMOD – This is a category that is related to files and directories, which tells the server what to do with the file or directory. CHMOD mainly issues commands such as the right to read and write to the file (or directory), the right to perform a certain task. Since most servers are based on UNIX systems, we will study the main CHMODs for these servers. On UNIX systems, the user is divided into three groups: “user”, “group” (member of the group that the owner of the file joins) and “world” (all other cases). When you connect to the server, it determines which group you belong to. For example, if you connect to a server using FTP, declare the username as a member, the server will assign you to the “user” group. The other members accessing by FTP belong to the group “group”. When someone visits your site using a web browser, they will be referred to as “world”.

Now we will practice ...
As mentioned above, there are 3 user groups and 3 "permissions" for files or folders. To determine the authority of certain groups, uniformly use the numerical symbols as follows:
4 = read (read permission)
2 = write (write permission)
1 = execute (execute permission)
By simple addition, these numbers can display a different combination of powers. For example, 3 (2 + 1) - write and execute permission for the file (or directory); 5 (4 + 1) - read and execute rights; 6 (4 + 2) - reading and writing rights; 7 (4 + 2 + 1) - read, write and execute. In summary, there are seven options:
7 = read, write & execute
6 = read & write
5 = read & execute
4 = read
3 = write & execute
2 = write
1 = execute
The CHMOD command is usually three digits: the first number represents the authority assigned to the user in the "user" group (ie for you). The second number indicates the rights of users belonging to the "group" group and the third number belongs to the "world" group.

In case of using the word sign, we will see the following symbols:
"r" - right to read
"w" - write permission
"x" - the right to be made
There are also:
"u" - for the user
"g" - for group
"o" - for other (world)
"a" - for all
For example: 755 = chmod u = rwx, go = rx filename; 644 = chmod u = rw, go = r filename; 600 = chmod u = rw, go = filename; 444 = chmod a = r filename.

Here are the common combinations of hosting:

Command Access (Code) Description
U G W
r w x r - x r - x chmod 755 For directories,
CGI-scripts and other executable files

r - - r - - chmod 644 For normal files

chmod 600 Hide files for all but you and
Your scripts
U = user; G = group; W = world r = Read; w = Write; x = Execute; - = No rights


Posted by & filed under rao vặt.