[Linux] Ubuntu root 권한이 없는 경우, is not in the sudoers file. This incident will be reported.


[Linux] Ubuntu root 권한이 없는 경우, is not in the sudoers file. This incident will be reported.

[username] is not in the sudoers file. This incident will be reported. 우분투에서 sudo 명령어 작성시 root 권한이 없을 때 발생하는 오류 문구 입니다. 해결 방법은 sudoers 파일에 계정 이름을 넣어 root 권한을 부여하는 것입니다. 우선 root 로 접근합니다. $ su 비밀번호 입력 #vi /etc/sudoers 커서를 하단으로 이동합니다. root ALL=(ALL:ALL) ALL 부분을 찾아 아래에 [username] ALL=(ALL:ALL) ALL 을 추가합니다. [username] 부분에는 자신의 계정명이 들어가야 합니다. 저장하고 나옵니다. root 로그아웃 후 본인 계정으로 su 명령어를 사용하여 정상적으로 권한이 부여된 것..


원문링크 : [Linux] Ubuntu root 권한이 없는 경우, is not in the sudoers file. This incident will be reported.