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

April 23, 2015 1.9k views
WordPress Linux Commands Linux Basics Security

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.

4 Answers

You should chown it to your sFTP user and chmod it to 755, both recursively.

  • 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
    *

    This command? sudo chown -R 755 admin and sudo chmod - R 755 admin

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

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

Very thank dear!

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
*

Have another answer? Share your knowledge.