Full permission, also known as “777” permission, refers to the permission that grants read, write, and execute access to a folder and its subfolders in Linux. Anyone accessing the folder and its subfolders can read, modify, and execute any files. It is beneficial when a folder needs to be shared among multiple users or when it is being used for collaborative work.
This article will offer step-by-step instructions to get full permission to access folders and subfolders in Linux.
- Using CLI to Give Full Permission to Folder and Subfolder
- Using GUI to Give Full Permission to Folder and Subfolder
Method 1: Using CLI to Give Full Permissions
To give complete permission (read, write, execute) to a folder and its subfolders in Linux, use the “chmod” command. The steps to do this are as follows:
The syntax for the chmod command to set the new permissions:
$ chmod  [file/folder]
In the above syntax, the “777” is the numerical code to give the full file permissions (Read, Write, Execute) to the owner, group, and everyone else.
- The first digit specifies the permissions of the owner.
- The second one identifies the permissions of the group.
- The third digit represents everyone else’s permissions.
Example 1: Give Full Permission to Specified Folder
An example is considered to give full permission to the existing folder “backup”. The step-by-step instructions are provided below:
Prerequisite: View the Current Permissions
Before modification, use the “ls -l” command to view the current permissions of the folder and its subfolders. For instance, specify the folder “backup” to present the permissions:
$ ls -l backup
Set the Permission
To set the permission for a folder named “backup” and all its subfolders to 777, use the command. The -R option tells chmod to recursively apply for permission to all subfolders:
$ chmod -R 777 backup
The output shows that the “backup” folder has granted all permission.
Use the ls -l command again to verify that the permissions have been changed:
$ ls -l backup
In this way, the subfolder of “dir” and “Folders” has granted full permission.
Example 2: Give Full Permission to Multiple Folders
To give full permission to multiple folders, utilize the “chmod” command with the “777” permission by specifying the folder name. In our case, the “Downloads”, “Music”, and “Pictures” folders are specified as below:
$ chmod 777 Downloads Music Pictures
Verify Full Permission
To verify the permission of the folders mentioned above, execute the “ls -l” command as below:
The output shows that the “Downloads”, “Music”, and “Pictures” folders have been granted full permission.
Method 2: Using GUI to Give Full Permissions
Users can follow the GUI method to access and modify the contents of folders and subfolders. It ensures the security and integrity of the files and folders while allowing users and processes to access and modify the contents as needed.
For this, step-by-step instructions are provided below to give full permission to the folder.
Step 1: Access Specified Folder
Press right-click on the particular folder, such as “Office”, to give full permission. After that, choose the “Properties” option in the dropdown menu:
Step 2: Give Full Permission to Folder
To give full permission to the specified folder, do the following:
- Select the “Permission” tab and hit the “Change Permission for Enclosed Files” button.
- It navigates to the corresponding window.
- At there, modify the full permissions (Read, Write, Execute) to the Owner, Group, and Others.
After changes, hit the “Change” button at the window’s top left corner.
Note: It’s important to note that giving full permission to a folder and its subfolders is not always the best practice. It makes the folder’s content accessible to anyone on the system. It is recommended to only grant the necessary permissions to the folder and its contents for security reasons.
To give full permission to a folder and its subfolders, use the “chmod 777 <folder name>” command and hit the “Properties” option by specifying the folder. After that, select the “Permission” tab and hit the “Change Permission for Enclosed Files” button. Modify the full permissions (Read, Write, Execute) to the Group, Others, and Owner.
This article has offered all possible methods to grant full permission to folders and subfolders.