Failed to open configuration file /etc/quagga/zebra.conf permission denied
I know that it is a very old question, but I wanted to add the good solution with some in depth explanation. You will have to execute two statements on Ubuntu like systems and then it works like a charm.
Permissions in Linux can be represented with three digits. The first digit defines the permission of the owner of the files. The second digit the permissions of a specific group of users. The third digit defines the permissions for all users who are not the owner nor member of the group. The webserver is supposed to execute with an id that is a member of the group.
The webserver should never run with the same id as the owner of the files and directories. In Ubuntu runs apache under the id www-data. That id should be a member of the group for whom the permissions are specified. To give the directory in which you want to change the content of files the proper rights, execute the statement:. It is therefor important not to have files within that directory that should never get changed, or removed.
It is therefor best practice to create a separate directory for files whose content must be changed. Reading permissions 4 for a directory means being able to collect all files and directories with their metadata within a directory. Write permissions 2 gives the permission to change the content of the directory. Implying adding and removing files, changing permissions etc..
Execution permission 1 means that you have the right to go into that directory. Without the latter is it impossible to go deeper into the directory. The webserver needs read, write and execute permissions when the content of a file should be changed. Therefor needs the group the digit 7. Being able to read and write a document is required, but it is not required to execute the file. The 7 is given to the owner of the files, the 6 to the group.
The webserver does not need to have the permission to execute the file in order to change its content. Those write permissions should only be given to files in that directory. For directories that do not require to change its files are group permissions of 5 sufficient. Documentation about permissions and some examples:.
I use a shared Linux hosting, when my admin changed the php to 5. Open the URL "www. Active Oldest Votes. Before u begin, you should be familiar with RootSudo.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Did you get it to work? I started with Raspian stretch desktop. I get similar errors, even though it seems to be working. Also the web interface map from dump is working. I never found out what exactly went wrong. It's to be expected given the newst Linux Filesystem Standard 3.
Re-reviewing the server. It is defined in globals. Workaround is to I had a similar problem with some new scripts that push updates out to local machines. These commands will run as "named" and allow you see some simple responses:. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Learn more. Asked 2 years, 8 months ago. Active 1 year ago. Viewed 11k times.
0コメント