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.