Linux folder properties make images unavailable

Source: Internet
Author: User
The Linux folder attribute causes the image to fail to display -- Linux Enterprise Application-Linux server application information. The following is a detailed description. There has been a BUG in WordPress 2.5 image uploading, and I have never used it. Instead, I uploaded the image to the album and then referenced it. However, this is difficult to manage. Today, when I use Windows Live Writer (WLW) to write a blog offline, WLW automatically uploads images to the server. In the past, when WP was installed, I did not use the/WP-content/uploads directory of wp. Instead, I used the self-built/uploads directory in the main directory. However, I found that all the images uploaded in the file cannot be displayed, and the Error 404 is returned (the file is not found ).

After careful observation in FlashFXP, we found that the default upload Directory attribute is 777, that is, the permission to read, write, and execute everyone. The newly created directory is 755 (no write permission for "group" and "public ). After setting it to 777, the image can be accessed normally.

This is a feature of Linux server, which is different from Windows. Linux uses a safer way to manage files. You can set permissions for each file or folder. It divides users into three types: ownership, group, and public. It sets weights for the three permissions: readable, writable, and executed, which are 4, 2, and 1 respectively. The weights are added, users are listed in the order of three types, that is, the permissions of the file (folder. This is the history of "777.

In the previous course "network operating system", the permissions were just mentioned in a word, and the teacher was also knowledgeable. It seems that the practice is still true.
Related Article

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.