How to disable users from logging into admin panel
How to disable users from logging into admin panel
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?
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?
Re: How to disable users from logging into admin panel
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.
You can create accounts and stop the email with the credentials from being send to the clients. That's all you can do.
Re: How to disable users from logging into admin panel
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.
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.
Re: How to disable users from logging into admin panel
ironhide,
this is impossible on web-interface
you can use vesta-nginx for this
/usr/local/vesta/nginx/conf
find this lines
(line 95)
add this code
final code
after this only you can login in the vestacp
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;
}
add this code
Code: Select all
allow your_ip;
deny all;
Code: Select all
location / {
expires max;
index index.php;
allow your_ip;
deny all;
}
Code: Select all
service vesta restart