You get the error message: Permission denied
e.g. cat: myfile.txt: Permission denied
A permission denied message is most of the time due to user rights.
A good place to start is the permission on the filesystem.
Here is a list of some commonly used settings, numerical values and their meanings:
-rw------- (600) — Only the owner has read and write permissions.
-rw-r--r-- (644) — Only the owner has read and write permissions; the group and others have read only.
-rwx------ (700) — Only the owner has read, write, and execute permissions.
-rwxr-xr-x (755) — The owner has read, write, and execute permissions; the group and others have only read and execute.
-rwx--x--x (711) — The owner has read, write, and execute permissions; the group and others have only execute.
-rw-rw-rw- (666) — Everyone can read and write to the file. (This is dangerous!)
-rwxrwxrwx (777) — Everyone can read, write, and execute. (This is dangerous!)
Here are some common used settings for directories:
drwx------ (700) — Only the user can read, write in this directory.
drwxr-xr-x (755) — Everyone can read the directory; users and groups have read and execute permissions.
Please note that even the root user can run into this errormessage!
When this error comes when mounting a filesystem, you should check your /etc/exports file and make shure the volume is exported and your client has the right to access it.
If the error comes when running a program on a mounted filesystem, look at the options of the mounted filesystem. E.g. can you run programs from it at all?
Disclaimer:The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!
About the Author
Author: Wim Peeters - Keskon GmbH & Co. KG
Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.