Link to home
Start Free TrialLog in
Avatar of TechEli
TechEliFlag for Spain

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
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Is there something that is not working?   This sounds normal to me.
Avatar of TechEli

ASKER

With 755 permits can not edit the template from wordpress
Avatar of farzanj
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
> 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-installed-dir

It will take care all from now on.
Avatar of Luminar
Luminar

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
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.
Avatar of TechEli

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-includes/theme
do
umask 000
before installing new themes.
ASKER CERTIFIED SOLUTION
Avatar of Luminar
Luminar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TechEli

ASKER

Tnx all