I can't seem to grant myself write permissions to the var/www/html directory

I’ve installed Centos 7 and created a Super user (user01) by adding it to the wheel group. I then installed WordPress and then logged onto server via FileZilla as user01 and tried to upload a new theme to the /var/www/html/wp-content/themes folder. But the file transfers failed due to lack of write/edit permission to that folder.


And how to get this resolved. Thanks.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This question was answered by @davidwashere:

Which user/group are the rest of the files associated with? You could change the ownership of files/directories you need to with chown:

# chown user:group <file/folder> -fv

View the original comment