Insufficient permissions to access the files
Step 1: Some files don’t have the required permission for accessing. In the following example, we want to read a file but we don’t have sufficient permissions.
$ cat geeks.txt
The output is
Step 2: Now we will change the access permission using the chmod command. The +rwx adds the read-write access.
$ chmod +rwx geeks.txt $ cat geeks.txt
The output is as follows
The chmod has the following commands:
- r: It means the read permission.
- w: It means write permissions
- x: It means execution permissions.
- +: It provides permission.
- –: It removes the permission.
How To Resolve Permission Denied Error On Ubuntu/Debian?
Linux is a community of open-source Unix-like operating systems that are based on the Linux Kernel. Linux distributions are constructed in such a secured way that a user cannot make changes unless he/she has administration access. Users who are first time exploring Linux encounter the problem of Permission being Denied. In this article, we will learn how to fix them with the following methods.
- Sudo command missing
- Insufficient permissions to access the files
- Change ownership of the file
Let’s explore all the methods one by one.
Contact Us