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

Cron daemon error sudo /usr/local/vesta/bin/v-update-sys-que

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
12 posts
  • 1
  • 2
  • Next
sanna
Posts: 53
Joined: Thu Feb 12, 2015 11:54 am

Cron daemon error sudo /usr/local/vesta/bin/v-update-sys-que
  • Quote

Post by sanna » Mon Mar 16, 2015 12:30 am

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
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
  • Quote

Post by skurudo » Mon Mar 16, 2015 5:08 am

/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

Top

sanna
Posts: 53
Joined: Thu Feb 12, 2015 11:54 am

Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
  • Quote

Post by sanna » Mon Mar 16, 2015 2:44 pm

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

thanks for support,
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
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
  • Quote

Post by skurudo » Mon Mar 16, 2015 4:50 pm

Sanna, why you can't connect as root?
but if this file is corrupted, I cant access the Vesta CP
Why is that? in sudoers you add some more permission to user.
Top

sanna
Posts: 53
Joined: Thu Feb 12, 2015 11:54 am

Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
  • Quote

Post by sanna » Mon Mar 16, 2015 5:31 pm

skurudo 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
but if this file is corrupted, I cant access the Vesta CP
Why is that? in sudoers you add some more permission to user.
With user Admin in Vesta CP I have message : Invalid username or password
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
  • Quote

Post by skurudo » Mon Mar 16, 2015 5:33 pm

sanna, you can or not connect via ssh?
Top

sanna
Posts: 53
Joined: Thu Feb 12, 2015 11:54 am

Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
  • Quote

Post by sanna » Mon Mar 16, 2015 5:43 pm

skurudo wrote:sanna, you can or not connect via ssh?
no I not connect via ssh
the only system is with VNC , right ?
many thanks
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
  • Quote

Post by skurudo » Mon Mar 16, 2015 5:44 pm

Okey, vnc. But you can login as root?
Top

sanna
Posts: 53
Joined: Thu Feb 12, 2015 11:54 am

Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
  • Quote

Post by sanna » Mon Mar 16, 2015 10:28 pm

skurudo wrote:Okey, vnc. But you can login as root?
no , invalid login or password incorrect

I ask to my VPS provider if I can do a rescue mode
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Cron daemon error sudo /usr/local/vesta/bin/v-update-sys
  • Quote

Post by skurudo » Tue Mar 17, 2015 4:30 am

Try to ask provider and restore root password to your VPS.
Top


Post Reply
  • Print view

12 posts
  • 1
  • 2
  • Next

Return to “Web Server”



  • 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
 

 

cron

Login  •  Register

I forgot my password