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 ?
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.
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:
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 !