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
  • Search

How to disable users from logging into admin panel

General questions about VestaCP
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
ironhide
Posts: 2
Joined: Thu May 01, 2014 10:55 am

How to disable users from logging into admin panel
  • Quote

Post by ironhide » Thu May 01, 2014 10:58 am

Hi

In my server I am creating new users via API, and sending them ssh details etc by email. The only thing I want is to prevent them from logging into vesta control panel with their credentials. Which means that only admin can log into the admin panel and no one else.

How to do that?
Top

demlasjr
Posts: 74
Joined: Thu Feb 27, 2014 8:50 pm

Re: How to disable users from logging into admin panel
  • Quote

Post by demlasjr » Thu May 01, 2014 8:56 pm

That's not the purpose of a web hosting control panel.

You can create accounts and stop the email with the credentials from being send to the clients. That's all you can do.
Top

ironhide
Posts: 2
Joined: Thu May 01, 2014 10:55 am

Re: How to disable users from logging into admin panel
  • Quote

Post by ironhide » Fri May 02, 2014 7:40 pm

Does it matter if that is a purpose of a web hosting control panel or not? Because it's always how the user's are planning to use it, matters.

There must be a way of doing that. If it's not easily doable via altering some configs, then I will have to change the code to meet my requirement.
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: How to disable users from logging into admin panel
  • Quote

Post by imperio » Fri May 02, 2014 8:27 pm

ironhide,
this is impossible on web-interface

you can use vesta-nginx for this

/usr/local/vesta/nginx/conf
find this lines

Code: Select all

location / {
            expires max;
            index   index.php;
        }
(line 95)

add this code

Code: Select all

			allow your_ip;
			deny all;
final code

Code: Select all

location / {
            expires max;
            index   index.php;
			allow your_ip;
			deny all;
        }

Code: Select all

service vesta restart
after this only you can login in the vestacp
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “General Discussion”



  • 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