Ownership of system configs not admin
Posted: Thu Jan 19, 2017 9:02 pm
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.
Any help would be appreciated
Regards
Matthew Koster
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]#
Regards
Matthew Koster