Username is not in the sudoers file This incident will be reported on CentOS

CentOS error Sudo SU – Username is not in the sudoers file This incident will be reported

  • Ketika melakukan perintah sudo su lalu memasukan password user: maka akan muncul error seperti berikut:
  • Username is not in the sudoers file. This incident will be reported
  • Solusi: edit file /etc/sudoers
nano /etc/sudoers
  • Cari baris berikut Allow root to run any commands anywhere, lalu tambahkan dibawahnya seperti ini:
## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
nama_user_anda   ALL=(ALL)   ALL

herdiana3389

A system administrator with skills in system administration, virtualization, linux, windows, networking, cloud computing, container, etc.