Permissions to: /var/www - Error while trying to copy the WP-CONTENT...

Hi Dears! Then, I am Migrated my blog of other hosting to Digital Ocean, but when I try to upload via sFTP, I try to copy the WP-CONTENT folder to **/var/www ** presents several errors like this, see example below:

September attrs is / usr: permission denied;

Error: mv / home / wp-content / var / www / wp-content: permission denied etc etc etc

After all how can I solve this? and **what is the default permission ** to **directory ROOT ( / ) **for me this appearing: xxx In short: whats default permission to: file, **directory ** , folder etc? Very very thanks to anyone who can help me.

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.

I have add the user ADMIN in file /etc/sudoers.tmp (SEE BELOW) BUT still when I connect to the ADMIN user looks like this: admin@mydomain:/$ and not user ROOT admin@mydomain:~# What do I solve this? I am grateful to those who help me. Thank you.

User privilege specification

root ALL=(ALL:ALL) ALL **admin ALL=(ALL:ALL) ALL **

Members of the admin group may gain root privileges

**%admin ALL=(ALL) ALL **

Allow members of group sudo to execute any command

**%sudo ALL=(ALL:ALL) ALL **

So: sudo chown -R 755 admin and sudo chmod - R 755 admin

Very thank dear!

Thanks Dear Woet. How make it? can give me an example? I remember when I created the user ADMIN I did it. Thank you.