G
G
Grizar2019-11-10 02:17:30
SSH
Grizar, 2019-11-10 02:17:30

ssh access error - is not in the sudoers file. This incident will be reported.?

I installed Centos7.6 + Vestacp
for ssh on the server and created a new user for everyone (except the new one), including root, closed the entrance, only a new user can get through ssh, BUT, ... but I did not add the user to sudo, those. The new user has access via ssh, but he cannot execute commands .. we have the error "" is not in the sudoers file. This incident will be reported. "", for root I closed the entrance.
Can you fix the situation???
=========
In /etc/ssh/sshd_config

AllowUsers NEWUSER
Protocol 2
PermitRootLogin no

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Puma Thailand, 2019-11-10
@Grizar

Su -
Root password

C
CityCat4, 2019-11-10
@CityCat4

Console. Rooting through the console and editing all the necessary files. If for some reason the console is not available - only a permutation.
PS: The tree of knowledge grows from the bumps on the forehead.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question