OS/Linux

ubuntu : (username) is not in the sudoers file. This incident will be reported.

#_달 2022. 11. 8. 18:00

linux에 접속중인 유저로 sudo 명령어를 사용했을때 발생

 

sudoers 파일에 쓰여있지 않은 유저가 sudo를 사용하려 했기 때문에 발생

 

/etc/sudoers 파일을 수정

 

root  ALL=(ALL:ALL) ALL 아랫부분에
(username) ALL=(ALL:ALL) ALL 을 입력해주면 된다