일반 사용자 계정으로 sudo 명령어를 하면 제목과 같이 계정명 + is not in the sudoers file. This incident will be reported. 라는 에러가 나온다.
이것을 해결하기 위해서는 우선 Root 계정으로 로그인 한다.

그 후 visduo -f /etc/sudoers 명령을 친다.

내용을 찾다보면 root ALL=(ALL) ALL 이라는 내용이 있는데 이 밑에다가
계정명 + ALL=(ALL) ALL을 추가한다.
나는 yy 복사한 뒤 p 를 하여 계정명만 변경해서 저장 하였다.

그 후 sudo 명령을 실행하면 정상 동작이 된다.
참고한 글 ( 감사합니다.)
https://shaeod.tistory.com/922
[리눅스] CentOS 및 Ubuntu에서 sudo로 root 권한 얻는 방법
※ 요약 카페24에서 새로운 리눅스 가상 서버를 분양 받은뒤 파이썬3 설치 작업을 위해 일반 계정으로 sudo 명령을 실행하니 아래와 같이 계정명 is not in the sudoers file. This incident will be reported...
shaeod.tistory.com
'전공 > 하둡' 카테고리의 다른 글
(하둡)start-all.sh 실행 시 Overriding mode 066 (rw-r--r--)? (0) | 2019.09.18 |
---|---|
hadoop namenode 에러 VERSION (Permission denied) (0) | 2019.09.16 |
하둡 SHUTDOWN_MSG: shutting down DataNode at java.net.UnknowHostException:Master:Master: Name or service not known 에러 (0) | 2019.09.04 |
리눅스 명령어 정리 (0) | 2019.09.04 |
하둡 failed on local exception: java.net.NoRouteToHostException : No route to host 에러 해결 (0) | 2019.09.04 |
일반 사용자 계정으로 sudo 명령어를 하면 제목과 같이 계정명 + is not in the sudoers file. This incident will be reported. 라는 에러가 나온다.
이것을 해결하기 위해서는 우선 Root 계정으로 로그인 한다.

그 후 visduo -f /etc/sudoers 명령을 친다.

내용을 찾다보면 root ALL=(ALL) ALL 이라는 내용이 있는데 이 밑에다가
계정명 + ALL=(ALL) ALL을 추가한다.
나는 yy 복사한 뒤 p 를 하여 계정명만 변경해서 저장 하였다.

그 후 sudo 명령을 실행하면 정상 동작이 된다.
참고한 글 ( 감사합니다.)
https://shaeod.tistory.com/922
[리눅스] CentOS 및 Ubuntu에서 sudo로 root 권한 얻는 방법
※ 요약 카페24에서 새로운 리눅스 가상 서버를 분양 받은뒤 파이썬3 설치 작업을 위해 일반 계정으로 sudo 명령을 실행하니 아래와 같이 계정명 is not in the sudoers file. This incident will be reported...
shaeod.tistory.com
'전공 > 하둡' 카테고리의 다른 글
(하둡)start-all.sh 실행 시 Overriding mode 066 (rw-r--r--)? (0) | 2019.09.18 |
---|---|
hadoop namenode 에러 VERSION (Permission denied) (0) | 2019.09.16 |
하둡 SHUTDOWN_MSG: shutting down DataNode at java.net.UnknowHostException:Master:Master: Name or service not known 에러 (0) | 2019.09.04 |
리눅스 명령어 정리 (0) | 2019.09.04 |
하둡 failed on local exception: java.net.NoRouteToHostException : No route to host 에러 해결 (0) | 2019.09.04 |