1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CHMOD 777 on localhost (library folder), what happen if I upload it on a server ?

Discussion in 'Server Configuration and Hosting' started by allewreK, Aug 7, 2013.

  1. allewreK

    allewreK Active Member


    I chmoded (recursive) to 777 my library folder on localhost.

    If I then release one addon, will the files uploaded on a production server be back to a normal CHMOD ?

  2. Floren

    Floren Well-Known Member

    Just curious, why do you need to do this?
    # ls -lha library
    total 44K
    drwxr-xr-x.  9 root root 4.0K Aug  3 00:39 .
    drwxr-xr-x.  8 root root 4.0K Aug  3 00:39 ..
    -rw-r--r--.  1 root root  737 Aug 25  2012 config.php
    -rw-r--r--.  1 root root    1 Aug  3 00:39 index.html
    drwxr-xr-x.  2 root root 4.0K Oct 17  2010 Lgpl
    drwxr-xr-x.  5 root root 4.0K Mar 15  2011 Minify
    drwxr-xr-x.  3 root root 4.0K Oct 17  2010 Sabre
    drwxr-xr-x. 46 root root 4.0K Aug  3 00:39 XenForo
    drwxr-xr-x.  4 root root 4.0K Nov 23  2011 XFCliImporter
    drwxr-xr-x. 33 root root 4.0K Oct 17  2010 Zend
  3. allewreK

    allewreK Active Member

    Because on my localhost server, I have a tool that write some words in a .txt file (that file needs to be in library).
    But I can't fopen if it's not chmoded 777.
    After uploading this .txt file on my production server, I don't want the any folder in library to be 777.
  4. Jeremy

    Jeremy Well-Known Member

    It shouldn't upload as 777 when you do, but it's best to upload and verify it when you do upload and change permissions accordingly.
    allewreK likes this.
  5. allewreK

    allewreK Active Member

    So it's shouldnt, that was the awnser I wanted to read ^^ I'll watch carefully after uploading btw, just in case...

    Thanks you very much Kovifor.

Share This Page