We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
[SOLVED] sudoers for Ubuntu Trusty with VestaCP
[SOLVED] sudoers for Ubuntu Trusty with VestaCP
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
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?
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
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?
Last edited by floown on Thu Oct 27, 2016 5:16 am, edited 1 time in total.
Re: sudoers for Ubuntu Trusty with VestaCP
Hello,
I have found a answer, I have edit sudoers with visudo and change it by:
Solved ^^
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
Re: [SOLVED] sudoers for Ubuntu Trusty with VestaCP
Thanks! ;-)
Sticky topic fo 90 days.
Sticky topic fo 90 days.
Re: [SOLVED] sudoers for Ubuntu Trusty with VestaCP
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
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
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
We think this file /etc/sudoers.d/admin don't have code:
If you paste this, all will work (as we hope)
Code: Select all
# Created by vesta installer
Defaults env_keep="VESTA"
Defaults:admin !syslog
Defaults:admin !requiretty
Defaults:root !requiretty