We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
Permissions web directory (to perform rsync)
-
- Posts: 5
- Joined: Thu Mar 13, 2014 8:33 am
Permissions web directory (to perform rsync)
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.
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.
Re: Permissions web directory (to perform rsync)
Are you trying to rsync from one account to another? Where are the files originating from exactly?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.
-
- Posts: 5
- Joined: Thu Mar 13, 2014 8:33 am
Re: Permissions web directory (to perform rsync)
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!
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!
Re: Permissions web directory (to perform rsync)
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.
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.
-
- Posts: 5
- Joined: Thu Mar 13, 2014 8:33 am
Re: Permissions web directory (to perform rsync)
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!
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!
Re: Permissions web directory (to perform rsync)
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.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!
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.