Cron daemon error sudo /usr/local/vesta/bin/v-update-sys-que
Cron daemon error sudo /usr/local/vesta/bin/v-update-sys-que
Help me
I received this cron daemon error : sudo /usr/local/vesta/bin/v-update-sys-queue backup and
sudo /usr/local/vesta/bin/v-update-sys-rrd
sudo: parse error in /etc/sudoers near line 22
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
I think after I use this because I had a bruteforce attack
Please check here: http://www.farinspace.com/secure-login-linux-server/
What I can do ?
How I can restore my sudoers file ?
I dont have access to my server in ssh and Vesta panel too
I received this cron daemon error : sudo /usr/local/vesta/bin/v-update-sys-queue backup and
sudo /usr/local/vesta/bin/v-update-sys-rrd
sudo: parse error in /etc/sudoers near line 22
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
I think after I use this because I had a bruteforce attack
Please check here: http://www.farinspace.com/secure-login-linux-server/
What I can do ?
How I can restore my sudoers file ?
I dont have access to my server in ssh and Vesta panel too
Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
/etc/sudoers
Code: Select all
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Defaults env_keep="VESTA"
Defaults:admin !requiretty
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
thanks for support,skurudo wrote:/etc/sudoers
Code: Select all
# # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset Defaults mail_badpass Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" Defaults env_keep="VESTA" Defaults:admin !requiretty # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL:ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL # See sudoers(5) for more information on "#include" directives: #includedir /etc/sudoers.d
but if this file is corrupted, I cant access the Vesta CP ? With user Admin I have message : Invalid username or password.
I will try with VNC because with putty I cant access to root
Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
Sanna, why you can't connect as root?
Why is that? in sudoers you add some more permission to user.but if this file is corrupted, I cant access the Vesta CP
Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
With user Admin in Vesta CP I have message : Invalid username or passwordskurudo wrote:Sanna, why you can't connect as root?
because I changed the port from 22 to another
I read here http://www.farinspace.com/secure-login-linux-server/
"Securing SSH Login
We will be using Public Key Authentication, so our first step will be to generate a public and private key. I recommend using PuTTYgen."
and now I cant access with putty : network error connection refused
Why is that? in sudoers you add some more permission to user.but if this file is corrupted, I cant access the Vesta CP
Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
sanna, you can or not connect via ssh?
Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
no I not connect via sshskurudo wrote:sanna, you can or not connect via ssh?
the only system is with VNC , right ?
many thanks
Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
Okey, vnc. But you can login as root?
Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
no , invalid login or password incorrectskurudo wrote:Okey, vnc. But you can login as root?
I ask to my VPS provider if I can do a rescue mode
Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
Try to ask provider and restore root password to your VPS.