Page 1 of 1

Ownership of system configs not admin

Posted: Thu Jan 19, 2017 9:02 pm
by revelnode
Hey Guys,

I ran into an interesting issue when following instructions on how to add a force HTTPS Nginx config to my server. When I went into /usr/local/vesta/data I noticed a lot of files owned by a secondary user I created before I installed Vesta (mkoster) (see directory list below). Please note, I did not manually change these, they seem to have been created during install using my secondary user. I am wondering if this is because those directories are assigned to user 1000 which admin would have been had I not created the user mkoster.

Is there a script included with vestacp to reset ownerships of important files and folders. I have not noticed any impacting issues as of yet, other than the force-https template not showing up in the Control panel when I try and modify a domain via admin.

Code: Select all

[root@srv1 data]# pwd
/usr/local/vesta/data
[root@srv1 data]# ll
total 4
drwxr-xr-x 2 mkoster mkoster   58 Jan 18 01:40 firewall
drwxr-x--- 2 root    root      25 Jan 18 01:30 ips
drwxr-xr-- 2 mkoster mkoster   84 Sep 30 05:34 packages
drwxr-x--- 2 root    root      98 Jan 19 05:10 queue
drwxrwx--- 2 admin   admin   4096 Jan 19 13:07 sessions
drwxr-xr-x 4 mkoster mkoster   26 Jun 23  2016 templates
drwxr-x--- 4 root    root      34 Jan 18 01:20 users
[root@srv1 data]#
Any help would be appreciated

Regards
Matthew Koster

Re: Ownership of system configs not admin

Posted: Sat Jan 21, 2017 11:25 pm
by revelnode
Well my assumption of using user 1000 was correct. After reinstalling my OS (CentOS 7) I now see the directory listing as follows:

Code: Select all

drwxr-xr-x 2 backup backup  61 Jan 21 18:19 firewall
drwxr-x--- 2 root   root    26 Jan 21 18:19 ips
drwxr-xr-- 2 backup backup  88 Sep 30 05:34 packages
drwxr-x--- 2 root   root   103 Jan 21 18:22 queue
drwxrwx--- 2 admin  admin   45 Jan 21 18:20 sessions
drwxr-xr-x 4 backup backup  28 Jun 23  2016 templates
drwxr-x--- 3 root   root    19 Jan 21 18:19 users