CHMOD command is used to permit files in the operating system which are based on Unix. This command works with asset of parameters that are given after it. If you are dealing with FTP clients then all you need to do is, select the file name whose permission you want to change and then right click and select CHMOD command.
When ever you select the CHMOD command, you find three types or groups of permission. The three groups are the owner or yourself then the Unix group of yours and then every one else, only these three groups can read and change the fire in query. It should be made clear to you that your Unix group and every one else can only read and do required changes to the file in query, they can not add, delete, or rename the file.
How numbers work in CHMOD command:
You can give three types of permission to the file and that is to read, write and execute. You have to allot some value to each every permission. Read permission is allotted the value of 4, write permission is allotted the value of 2 whereas execute permission is allotted the value of 1 and value 7 is allotted for all the permissions. So as CHMOD command gives the value 7 that mean all the three permissions are allotted. And as any client is given the value 0 that is no permission is allotted to the file. And as value 6 is given that means the person can read and write on the file but can not execute the file.
Permissions That Are Common:
If you give permission 644 then most of your html files will work on this permission.755 permission is given to script files and 777 permission is given to configuration files that are in the script parcel, but be careful before allotting 777 permission to every one because anyone who gets this permission can add, remove, delete, read or edit the files. And to remain safe it is good to allot few permissions or permissions with less numbers, to anyone.
How Can FTP Client Keep The Things Simple?
The persons who are using shared server do not get right to access on command line through CHMOD command. Many of them use FTP process for transferring the file or for changing the file. For this you need to right click on the file you want to modify and then click on the CHMOD command. You will generally nine checkboxes through a popup, and these will be set in three rows. On the left side you will get read, write, and execute permission. You can also take the permission by typing the number where you were clicking on any of the required three boxes. As you choose the permission just then click ok and file permission will be changed.
Always prefer the way that is secured one and move with the most restrict permission possible that is execute permission and there already exist three parties that will define permission. And the three parties you already know are owner, group, and everyone else.