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 Debian/Ubuntu
  • Search

ubuntu admin user permissions to vestacp admin folders

Debian/Ubuntu related topics
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
delebash
Posts: 22
Joined: Mon Aug 24, 2015 5:28 pm

ubuntu admin user permissions to vestacp admin folders
  • Quote

Post by delebash » Wed Jun 08, 2016 5:30 am

I am new to linux and vestacp and would like some help understanding how permissions work on the linux ssh side in context of vestacp

I setup a sudo user before installing vestacp and would like for that user to be able to have full access to the admin folder but I am not sure the best way to go about that. I have added myself to the vestacp admin group and I understand I can use chown but I am not sure if this will cause problems with vestacp

Here is what I am trying to do
Login as myself which I am in sudo and admin groups
Then I want to be able to navigate the admin directory. I can't even do a list on the public_html directory for my domain

Code: Select all

ls: cannot open directory .: Permission denied
delebash@ageektech:/home/admin/web/ageektech.com/public_html$
I know I can use sudo or create an ftp user but I would like to have full control over the admin folder logged in as the sudo user that I created before vestacp was installed.

Am I thinking about this in the wrong way, if so what should I be doing to easily be able to navigate the admin directories and manipulate files in public_html without sudo or ftp. Or is sudo and ftp the proper way to go. I understand that when editing a conf file you want to use sudo, but not being able to just list the directories in the admin/web folder without sudo is a pain.

If I can get access to the admin directory without harming vesta how do I set the proper access permissions, via chown or chmod or both?

One of my main concerns is that if I change ownership to me then will this affect vestacp's ability to change the config files it needs to modify?

Thanks
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: ubuntu admin user permissions to vestacp admin folders
  • Quote

Post by mehargags » Wed Jun 08, 2016 6:25 am

directory listing is DISABLED by default in Nginx/Apache for VestaCP and is strongly suggested to be kept 'off'.

upload a basic index.html file (infact Vesta creates one for you when you configure your domain fresh) and try accessign the domain, it should load the index file fine. After that you can setup any permissions as needed... But do not try this with empty dir.

After uploading your site as admin group member it should be fine... if permission problems you can issue

Code: Select all

chown -R admin:admin /home/admin/web/domain.com/public_html
you can also use your yourusername:admin if you belong to the "admin" group
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Debian/Ubuntu”



  • 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