Question

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

Posted April 23, 2015 4.3k views
Linux BasicsWordPressSecurityLinux Commands

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.

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.

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

Submit an Answer