You are here: Home Linux Webserver Set right chmods for files and folders
Search
Advanced Search…
E-Mail

Webmail: webmail.wyden.com

E-Mail Preferences: postfix.wyden.com/users

E-Mail Administration: postfix.wyden.com

Statistics
Total: 463
Total Pages: 284
Total Folders: 87
Total Files: 18
Total Links: 26
Last modification: 03.02.2012 16:00
 

Set right chmods for files and folders

by Wyden Silvan last modified 25.02.2010 09:58

Set the user

usermod -g www-data myuser
chown -R myuser.www-data myfolder

 

For single files/folders

chmod 775 myfolder
chmod 664 myfile

 

Make it for all files/folders

find /var/www/domain -type d -exec chmod 775 {} +
find /var/www/domain -type f -exec chmod 664 {} +