Linux prompts wrong permissions on configuration file

Source: Internet
Author: User
Tags file permissions phpmyadmin

After installing VSFTPD on a Linux server today, the FTP root is assigned to the root directory of the Web site/var/www/, with 777 permissions, and then again to Http://SERVER_IP_ADDRESS/phpMyAdmin. Unable to open phpMyAdmin appears with this hint:

Wrong permissions on configuration file, should not being world writable!

Look at the data, the original phpMyAdmin to 755 permissions to normal access (777 permissions can not be normal access).
Solution:

The code is as follows Copy Code

SSH (Putty 6.0)-> cd/var/www/-> chmod-r 755 phpmyadmin-> OK


about 755 Permissions

This string of characters can be divided into 4 paragraphs to understand, the structure is "D + File owner operation Rights + file owner of the group operation permissions + the rest of the operation rights":

1, the first paragraph: the example of the letter "D", indicating the directory where the file

2, the second paragraph: the example of the string "rwx", indicating the file owner's permission to operate this file

3, the third paragraph, the example of the string "R-x", which represents the file owner of the group to operate permissions on some files

4, the fourth paragraph, the example of the string "r-x", means that in addition to 2, 32 of people outside the operation of this file permissions

Typically, three digits are used to represent the read, write, and execute permissions of a file:

Executive: 1

Written to: 2

READ: 4

Casually write a number: 755, this 3-digit number corresponds to the preceding paragraph: 7 corresponds to the second paragraph, 5 corresponds to the third paragraph, 5 corresponds to the fourth paragraph.

Meaning:

7: The file owner's permissions, 4+2+1=7, that is, the file owner of the file has the power to kill, read, write, execute casually.

5: The permissions of the group where the owner of the file is located: 4+1=5, where the file owner group has read, execute, and no write permissions to the file.

5: Ditto, the rest of the file only read, execute permissions, no write permission.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.