[LINUX] - User is not in the sudoers file this incident will be reported

Study kasus

myUser@localhost:~$ sudo su
kemudian muncul error seperti ini
 User 'myUser' is not in the sudoers file
cara mengatasinya cukup mudah [Ubuntu]
root@localhost:~# nano /etc/sudoers
tambahkan code ini dimana saja
 %sudo    ALL=(ALL:ALL) ALL
atau langsung tulis di terminal

root@localhost:~# echo "%sudo    ALL=(ALL:ALL) ALL" >> /etc/sudoers

Category: