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 General Discussion
  • Search

[SOLVED] sudoers for Ubuntu Trusty with VestaCP

General questions about VestaCP
Locked
  • Print view
Advanced search
6 posts • Page 1 of 1
floown
Posts: 87
Joined: Wed Nov 19, 2014 1:51 pm

Os: Ubuntu 15x
Web: apache + nginx
[SOLVED] sudoers for Ubuntu Trusty with VestaCP

Post by floown » Thu Oct 27, 2016 3:11 am

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?
Last edited by floown on Thu Oct 27, 2016 5:16 am, edited 1 time in total.
Top

floown
Posts: 87
Joined: Wed Nov 19, 2014 1:51 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: sudoers for Ubuntu Trusty with VestaCP

Post by floown » Thu Oct 27, 2016 5:16 am

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

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

Re: [SOLVED] sudoers for Ubuntu Trusty with VestaCP

Post by skurudo » Wed Dec 07, 2016 7:35 am

Thanks! ;-)

Sticky topic fo 90 days.
Top

COivp
Posts: 2
Joined: Sun Dec 25, 2016 11:06 pm

Re: [SOLVED] sudoers for Ubuntu Trusty with VestaCP

Post by COivp » Sun Dec 25, 2016 11:09 pm

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
Top

warmax356
Posts: 15
Joined: Fri Dec 18, 2015 2:27 am

Re: [SOLVED] sudoers for Ubuntu Trusty with VestaCP

Post by warmax356 » Thu Jan 26, 2017 3:45 pm

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.
Top

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

Re: [SOLVED] sudoers for Ubuntu Trusty with VestaCP

Post by skurudo » Tue Feb 28, 2017 1:34 pm

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)
Top


Locked
  • Print view

6 posts • Page 1 of 1

Return to “General Discussion”



  • 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
 

 

Login  •  Register

I forgot my password