TechEli
asked on
Permissions on linux
I have a folder in the apache with 777 permissions. When installing wordpress themes through the folders have permission 755. What should be done so that when something is installed folder permissions take before?
Tnx All
Tnx All
Is there something that is not working? This sounds normal to me.
ASKER
With 755 permits can not edit the template from wordpress
I am not understanding your question correctly.
If you want to setup mechanism so that when you create a file, it takes certain permissions, you need umask.
If you would want to set certain permissions recursively for all files and folders with a certain folder, you need chmod -R
There could be many more interpretations of your question, please clarify
If you want to setup mechanism so that when you create a file, it takes certain permissions, you need umask.
If you would want to set certain permissions recursively for all files and folders with a certain folder, you need chmod -R
There could be many more interpretations of your question, please clarify
> When installing wordpress themes through the folders have permission 755.
Which account, root or "apache" or your account when you install wordpress?
login as that account, then
echo "umask 000" >> ~/.profile
umask 000
chmod 777 -R /path-to-wordpress-install ed-dir
It will take care all from now on.
Which account, root or "apache" or your account when you install wordpress?
login as that account, then
echo "umask 000" >> ~/.profile
umask 000
chmod 777 -R /path-to-wordpress-install
It will take care all from now on.
i find it that doing chmod 775 and 777 in an apache folder is VERY dangerous..
just give the apache user permission to the folder by saying:
chown www-data:www-data <folder>
Examplewise: chown -R www-data:www-data /var/www/wordpress
just give the apache user permission to the folder by saying:
chown www-data:www-data <folder>
Examplewise: chown -R www-data:www-data /var/www/wordpress
If you cannot edit template then worms and trojans cannot edit too.
Keep it locked except for the short times when you actually need it to be world writeable.
Keep it locked except for the short times when you actually need it to be world writeable.
ASKER
I do not want to give permissions to the entire Apache folder. I just want to give permissions to the folder / var / www / html / dominio.com / wordpress / wp-includes / theme /. I just want to give 777 permissions to the folder theme. If from the installed wordpress themes, these catch the theme folder permissions.
# chmod 777 -R /var/www/html/dominio.com/ wordpress/ wp-include s/theme
do
umask 000
before installing new themes.
do
umask 000
before installing new themes.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Tnx all