Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


User is not in the sudoers file. This incident will be reported. CentOS
07-07-2014, 10:47 PM
Post: #1
User is not in the sudoers file. This incident will be reported. CentOS
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


[Image: engrish25.png]
Reply



Forum Jump:


User(s) browsing this thread: 1 Guest(s)