Chmod Calculator: Calculate Linux File Permissions
Just select the permissions that you want for your files and hit the Calculate button.
Once you have the file permissions in absolute or symbolic mode, you can use the chmod command to change the file permission. Refer to these chmod command examples if you are not familiar with this command.
Some details about the user, group and other you may need to know to clear your basics.
User is the owner of the file. When you create a file, you become the owner of the file. The ownership can be changed.
Every user is part of a certain group(s). A group consists of several users and this is one way to manage users in a multi-user environment.
Other can be considered as a super group with all the users on the system. Basically, anyone with access to the system belongs to this group.
I hope this nifty chmod calculator helped you to calculate the Linux file permissions easily.
Common chmod commands and their meaning
Here are some command chmod commands with their explanation:
This means that owner, group and everyone has the all the rights i.e. to read, write and execute. This is a dangerous permission to have on any file and you should avoid using it.
The owner can read, write and execute. Group members and everyone else can read and execute but cannot modify (write) the file.
With this command, you are adding execute permission for the owner, group and everyone else. This is equivalent to chmod a+x.
With this, you are giving read and write permission to the owner user. Group members and others cannot read, write or execute. Even the owner cannot execute the file with this permission set.
You are giving read, write and execute permission to the owner user but the groups members and others have no permissions at all. They cannot read, write or execute.
The file can only be read by the owner. No one can write or execute it.
The user and groups can read, write and execute the file. Others can read and write but cannot execute it.
The owner can read and write but cannot execute it. Group members and others can read the file but cannot write or execute it.