Hello, I’m New DigitalOcean user, I creat a new Droplets (Ubuntu 14.04)and I install VestaCP to control web sites. the Problem is:- when I get files by ssh as “root”(Ex. Wordpress.tar.gz) and put it inside (public_html) in any sites and extract it as root the files&folders from (Wordpress.tar.gz) get CHMOD (nobody- nogroup) and web site’s admin can’t edit or create folders inside this folder. and my public_html is in: /home/admin1/web/user1/public_html not like /home/user1/public_html
admin1: which is creat by VestaCP as a user (for creating websites and Data) user1: which is creat by VestaCP as a website
Any solution ?
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!
I’m now using this commands : <pre> sudo chown -Rv username directory sudo chown -v username file </pre> to give the user permission,but I think that isn’t general solution !
The command you list are correct for changing ownership of files that you’ve already created. In the future, however, you should use the “user1” account whenever you are working on the site to ensure you don’t have any future problems. There are two reasons for this:
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.