Add comment

Right permissions for folders

5 replies [Last post]
Guest
Guest's picture

Hi guys,

var/www/ is set automatically set as web root when I install ubuntu.

I want to assign permissions to folders of a website if I want host one and the folders inside.

Please help me to assign correct and safe permissions to folders below. Also if you think the structure is wrong please feel free to change it. I see some folders are left outside of main root folder by some users but I don’t know why.

/mytestwebsite/ (root of my website) Permission = ?
/mytestwebsite/script/ (holds css and javascript files – Read only) Permission = ?
/mytestwebsite/include/ (holds some include files, header and footer like – Read only) Permission = ?
/mytestwebsite/class/ (holds important class files – Read only) Permission = ?
/mytestwebsite/images/ (holds all images like site images and user uploads – Read and Write) Permission = ?

Thanks in advance

Guest
Guest's picture

viagra online prescription free
viagra without a doctor prescription
generic names of viagra
viagra without prescription
how to order generic viagra
viagra no script
order generic viagra online
viagra no prescription
buy viagra online legal

Guest
Guest's picture

online generic viagra no prescription
viagra without a doctor prescription
discount viagra for sale
viagra without a doctor prescription
buy cheap viagra online us
viagra ohne rezept aus deutschland
what is a good price for viagra
viagra without a doctor prescription
viagra pills sale cheap

Guest
Guest's picture

100mg viagra better than 50 mg
viagra without prescription
cut viagra pill half
viagra without a doctor prescription
viagra costs per pill
viagra no script
viagra 50 mg etkisi
viagra ohne rezept aus deutschland
australian customs generic viagra

Guest
Guest's picture

Thanks alaasam.

Just one last thing. If I keep class.database.php file (everything related database is in here, connections, SQL bits, etc.) in class/ folder would it be dangerous?

If I assign these permissions then I am safe. Do I understand right?

Guest
Guest's picture

/mytestwebsite/ (root of my website) Permission = 700
/mytestwebsite/script/ (holds css and javascript files – Read only) Permission =744
/mytestwebsite/class/ (holds important class files – Read only) Permission= 744
/mytestwebsite/images/ (holds all images like site images and user uploads – Read and Write) Permission =777

the permissions in octal

Post new comment

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.
Page execution time was 92.07 ms. Executed 153 queries in 20.41 milliseconds.

Memory usage:

Memory used at: devel_init()=0.84 MB, devel_shutdown()=9.13 MB.