Answer the question
In order to leave comments, you need to log in
How can you harm a wordpress site if you have root but no write permissions?
Hi all.
(after endless hacks of my sites, I want to secure them as much as possible)
I wonder what will happen if I set permissions for the entire wordpress code with a restriction on change. That is, you can not rewrite / supplement / delete.
Wordpress itself is inside an OpenVZ/Docker/LXC container.
The site itself:
chmod 555 /opt/wordpress/*
All static will be given specially from under another directory. No performance rights.
The database is local, but updates are allowed, only INSERT/UPDATE.
Let's say an administrator password is chosen for such a wonderful system. What can be done?
Thank you.
Answer the question
In order to leave comments, you need to log in
The following scheme is possible:
- Get root access to the server
- Find the CMS configuration file with the database data
- Connect to the database under this data
- Change the administrator password to the CMS through the database (convert some 12345 to md5 and update the cell with an encrypted password)
- Go to the admin. Gadim.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question