Correct attributes (chmod) for my directories?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cybershaolin
    Member
    • Nov 2006
    • 38
    • 3.8.x

    Correct attributes (chmod) for my directories?

    In my forum, I use the folder option instead of the database one to store the files. The only way for me to make this work is to use 777 for my sub-folder. If I use 755, when trying to post a file on the forum, it says that it cannot write...

    My sub-folder is located this way: /forum/files.

    This is not safe no?

    Is there a guide which explains in details all chmod attributes that should be applied to our vbulletin software?

    I made a search and found different theories but nothing official. I think there should be a sticky post on this or even a note in the installation or upgrade process of the soft.

    Users: Don't you think it would be a great idea? This is a big security matter!
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    If you want to store attachments in the file system, then the directory must be world-readable and writable (777).

    It would be safer if you placed that directory above your main web directory so it's not accessible via the web.

    Note, this is covered in the documentation here:

    Moving Attachments to the Filesystem
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    Related Topics

    Collapse

    Working...