Page 1 of 1

[SOLVED] sudoers for Ubuntu Trusty with VestaCP

Posted: Thu Oct 27, 2016 3:11 am
by floown
Hello,

I have update my 'sudo' package on my Ubuntu Trusty. I have done it a little too quickly and accept this propostion: install the package maintainer's version

So it's my new /etc/sudoers

# cat /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:/snap/bin"

# 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
I ask you if VestaCP has the same by default?

Thx.

// EDIT : OMG, I have now a 'Internal vesta error'
So like I suppose with open this thread, the 'sudoers' is wrong.
Could you quote me what I should change, please?

Re: sudoers for Ubuntu Trusty with VestaCP

Posted: Thu Oct 27, 2016 5:16 am
by floown
Hello,

I have found a answer, I have edit sudoers with visudo and change it by:

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
Solved ^^

Re: [SOLVED] sudoers for Ubuntu Trusty with VestaCP

Posted: Wed Dec 07, 2016 7:35 am
by skurudo
Thanks! ;-)

Sticky topic fo 90 days.

Re: [SOLVED] sudoers for Ubuntu Trusty with VestaCP

Posted: Sun Dec 25, 2016 11:09 pm
by COivp
Thanks this fixed my issue

I had blank Vesta control panel after update. I could navigate around the panel but there was no data such as DNS, backup, web, database, services.
Logged out then couldn't log back in ("Invalid username or password")
Websites still loaded ok, just no control panel

Re: [SOLVED] sudoers for Ubuntu Trusty with VestaCP

Posted: Thu Jan 26, 2017 3:45 pm
by warmax356
i followed the instructions of this and also reset the password in the CL on putty, but sadly i am still unable to login to Vesta cp, this has happend after the server updated and took the repo files over "custom" files, is there a way to fix this as i am unable to log into my vesta cp, and would not want to ditch the panel.

Re: [SOLVED] sudoers for Ubuntu Trusty with VestaCP

Posted: Tue Feb 28, 2017 1:34 pm
by skurudo
We think this file /etc/sudoers.d/admin don't have code:

Code: Select all

# Created by vesta installer
Defaults env_keep="VESTA"
Defaults:admin !syslog
Defaults:admin !requiretty
Defaults:root !requiretty
If you paste this, all will work (as we hope)