Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Permissions web directory (to perform rsync)

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
JeroenReumkens
Posts: 5
Joined: Thu Mar 13, 2014 8:33 am

Permissions web directory (to perform rsync)
  • Quote

Post by JeroenReumkens » Thu Mar 13, 2014 8:36 am

Hi all,

I was trying to rsync my changes to the web-directory, but noticed that the group hasn't any writing permissions by default. This means any other user besides root isn't able to write in the folders.

I was wondering if anyone has a solutions for this problem. Can you somewhere change the default permissions Vesta sets on the domain folders, or do you have another solution?

Thanks for you help!

Jeroen.
Top

ken
Posts: 15
Joined: Fri Feb 28, 2014 5:20 am

Re: Permissions web directory (to perform rsync)
  • Quote

Post by ken » Fri Mar 14, 2014 1:11 am

JeroenReumkens wrote:Hi all,

I was trying to rsync my changes to the web-directory, but noticed that the group hasn't any writing permissions by default. This means any other user besides root isn't able to write in the folders.

Jeroen.
Are you trying to rsync from one account to another? Where are the files originating from exactly?
Top

JeroenReumkens
Posts: 5
Joined: Thu Mar 13, 2014 8:33 am

Re: Permissions web directory (to perform rsync)
  • Quote

Post by JeroenReumkens » Fri Mar 14, 2014 8:06 am

I'm trying to rsync from my deployment server to my VPS. (And the VPS is running Vesta)
Therefore I've set up a user 'deploy' because I don't want to rsync to my VPS using the root account. When doing that I noticed that the group doesn't have any writing permissions on the web-folders.

I've found where the directory permissions are set during the setup of a new domain, but I'm hoping there is another solution then changing the permissions which I'm currently not seeing.

Thanks in advance!
Top

ken
Posts: 15
Joined: Fri Feb 28, 2014 5:20 am

Re: Permissions web directory (to perform rsync)
  • Quote

Post by ken » Sun Mar 16, 2014 8:31 pm

So there's one of two things you can do:

1. Enable SSH logins for the user of the web directory that you're trying to create. You can do this by editing the user in Vesta Control Panel. Temporarily change it to bash or rssh. Then rsync using that user.

2. rsync to the "deploy" users folder and then move the files by logging into root by either ssh or console.

I would use method number 1 if possible.
Top

JeroenReumkens
Posts: 5
Joined: Thu Mar 13, 2014 8:33 am

Re: Permissions web directory (to perform rsync)
  • Quote

Post by JeroenReumkens » Sun Mar 16, 2014 9:00 pm

Thanks for your reply!

So you are saying I need to create a unique ssh-account for every website I'll put on that server? Actually I'm looking for one user called 'deploy', which I use internally to deploy all of my websites to the live server. Or do you think this is a bad idea?

If I use that deploy user that means there is no other solution besides giving every folder writing permissions for the group, and add my deploy user to de admin group.

I'm still trying to figure everything out, so if I'm saying stupid thinks, please tell me :-)

Thanks!
Top

ken
Posts: 15
Joined: Fri Feb 28, 2014 5:20 am

Re: Permissions web directory (to perform rsync)
  • Quote

Post by ken » Mon Mar 17, 2014 12:37 am

JeroenReumkens wrote:Thanks for your reply!

So you are saying I need to create a unique ssh-account for every website I'll put on that server? Actually I'm looking for one user called 'deploy', which I use internally to deploy all of my websites to the live server. Or do you think this is a bad idea?

If I use that deploy user that means there is no other solution besides giving every folder writing permissions for the group, and add my deploy user to de admin group.

I'm still trying to figure everything out, so if I'm saying stupid thinks, please tell me :-)

Thanks!
Well you wouldn't have to create an ssh user you just need to enable bash login on their vesta account and upload it that way. If you want one account to rule them all then yes you'd need to add each usergroup to the deploy account and then modify the web directory so group is writable.

I don't see a problem with modifying permissions of group since be default they only appear to belong to the users anyway. So long as that is the case with your system as well it should be fine. You could also just give write access temporarily as well. It's all up to you as to how to set your permissions but ultimately there's only two accounts that can write to the directory out of the box and that's root or the user.
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password