Working with the file system in the Unix family often requires changing and setting permissions for certain types of data. These measures reduce the risk of unauthorized viewing and use of system or other information important for the correct operation of the server.
However, such a protective function (for example, 777 access rights) makes sense only for multi-user OSs, since otherwise, installing it would be rather a waste of time.
What does this term mean?
In any operating system that provides for the operation of different groups of users, there is a restrictive element. He is appointed by the system administrator and regulates the procedure and possibilities of working with the directory subject to him for three types of users:
- File owner.
- Users in the owner group.
- All other persons having access to the server through a web browser.
Permissions 777 - an attribute that allows you to read, run and overwrite / create files in the directory for all types of users listed above, which exists only for the Linux platform. This function provides full opportunities for interacting with information, but, unfortunately, is far from the idea of security. This action is similar to placing a file in the shared documents section of Windows.
Permissions 777: Number Value
On Unix, access permissions for groups are recorded on a single line of three digits. Each of them indicates the rights of one of the types of users.
Thus, this numerical combination is an arithmetic sum: 2 (write), 4 (read) and 1 (execute) and describes the possibilities that this function provides.
How to set permissions 777?
Knowing that the above attribute allows the user to decrypt a numerical designation, exposing it is not difficult. To do this, you will need any file manager that supports FTP-connection with the server, which can be accessed as administrator.
The answer to the question of
how to set 777 permissions on the folder is no different from the instructions for the file: on the server, select the desired object and call the context menu by clicking on the right mouse button. Next - select “file” and “change attributes”.
In the manager window that opens, you need to drive a combination of numbers or check the boxes next to the items for each user group. The Unix server system also provides a simpler method, which requires only entering a command in the format: chmod 777% filename% (file or folder name) in the host control panel.
For multi-user servers only
The main thing is to remember that 777 rights exist only for files located directly on a multi-user server and are not installed on a separate computer.
In addition, it is possible to set these rights to directories, where the “behavior” of the indicated parameters will be the same as for the folder, with the only difference being that instead of reading objects inside, the user will be able to view only a list of all content. Setting rights to directories is carried out as described above.
And, of course, it should be remembered that setting this type of access for the Denver package will not work, since it imitates the operation of a network web service, however, it is not, in fact, operating on the Windows platform. This OS does not belong to the category of server ones, therefore when installing scripts on Denver, the requirements for changing access rights should simply be ignored.
Disadvantages of full access rights
Server system of law 777 it is used rarely, as a rule, most hosters adhere to the 755 form. They differ in somewhat truncated functions for all users except the owner, depriving them of the ability to write and create files.
Exposure of rights that provide full access to content located on the server often leads to a violation of the security of the resource. Attackers do not miss the chance to take advantage of a perceptible breach in the protection of information, since incorrectly configured access settings give freedom to any user. Thus, not only those interested in this can harm the server, but also the rash actions of inexperienced users.
Before setting access rights to 777, you should think carefully about whether such negligence will lead to a hacking resource.