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 General Discussion RHEL/CentOS
  • Search

Ownership of system configs not admin

RHEL/CentOS related topics
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
revelnode
Posts: 22
Joined: Thu Jan 19, 2017 8:54 pm

Os: CentOS 6x
Web: apache
Ownership of system configs not admin
  • Quote

Post by revelnode » 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.

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
Top

revelnode
Posts: 22
Joined: Thu Jan 19, 2017 8:54 pm

Os: CentOS 6x
Web: apache
Re: Ownership of system configs not admin
  • Quote

Post by revelnode » Sat Jan 21, 2017 11:25 pm

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
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “RHEL/CentOS”



  • 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
 

 

cron

Login  •  Register

I forgot my password