• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
User is not in the sudoers file. This incident will be reported. CentOS
#1
You will get the error message
%username% is not in the sudoers file. This incident will be reported.

If you try to escalate your user account to root using a command similar to sudo -i

CentOS actually have a good wiki article on how to become root here: http://wiki.centos.org/TipsAndTricks/Bec...aa7b51412d


Steps

Escalate / switch user to root
Code:
su - root

Edit sudoers file
Code:
nano /etc/sudoers

At the bottom add
Code:
# Allow user accounts to sudo
Mark    ALL=(ALL)       ALL

ctrl + o then ctrl + x

Log out then back in
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Installing VirtualBox guest editions on Linux CentOS Mark 0 5,819 07-07-2014, 11:02 PM
Last Post: Mark
  How to update user access permissions without logging off / on Mark 0 4,693 16-02-2014, 06:03 AM
Last Post: Mark
  FIX: Microsoft Office has not been installed for the current user Mark 0 13,371 17-01-2012, 04:22 PM
Last Post: Mark
  How to add an authenticated user to an SQL database - SQL Server Management Studio Mark 0 5,544 13-08-2011, 01:22 AM
Last Post: Mark

Forum Jump: