sudo 명령어 사용시 다음과 같은 에러가 나올 수 있다.
is not in the sudoers file. This incident will be reported
에러가 발생하는 원인은 sudo 명령에 대한 설정 중 권한에 관한 부분이 되어 있지 않기 때문이다.
에러 발생 순간부터 확인해 보자
/home/oracle/DBA/script/SQL> sudo strace -p 20495 -o ora_cssdagent.txt [sudo] password for oracle:? oracle is not in the sudoers file. ?This incident will be reported.
visudo를 통해 /etc/sudoers 파일을 편집해 주면 된다.
/home/oracle/DBA/script/SQL> visudo -f /etc/sudoers ## Next comes the main part: which users can run what software on ## which machines (the sudoers file can be shared between multiple ## systems). ## Syntax: ## ## user MACHINE=COMMANDS ## ## The COMMANDS section may have other options added to it. ## ## Allow root to run any commands anywhere root ALL=(ALL) ALL oracle ALL=(ALL) ALL ## Allows members of the 'sys' group to run networking, software
위와 같이 oracle 계정이 사용할 수 있도록 추가해 준다.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
26 | HP-UX Glance adviser를 활용하여 모니터링 데이터 수집 | 명품관 | 2016.04.08 | 9535 |
25 | RAC SCAN 사용을 위한 DNS 서버 설정하기 | 명품관 | 2020.11.10 | 9229 |
24 | strace 사용법 | 명품관 | 2016.02.18 | 8316 |
23 | nmon 사용법 | 명품관 | 2016.02.05 | 7801 |
» | sudo 사용시 is not in the sudoers file. This incident will be reported 에러 해결법 | 명품관 | 2016.02.19 | 3412 |
21 | Oracle Linux 8.2 버전 chrony 설정하기 | 명품관 | 2020.09.17 | 2391 |
20 | iscsi 서버/클라이언트 설정하기(with targetcli) | 명품관 | 2020.11.14 | 2214 |
19 | 실시간으로 TCP와 UDP 포트를 감시하는 방법 | 명품관 | 2020.02.05 | 2199 |
18 | 59 Linux Networking commands and scripts | 명품관 | 2019.11.18 | 1590 |
17 | Memory Usage 확인용 스크립트 [2] | 명품관 | 2019.04.15 | 1417 |
16 | [7.x] hostname 변경하는 hostnamectl 사용법 [1] | 우뽕 | 2020.02.05 | 992 |
15 | 리눅스 Free 메모리의 이해 | 명품관 | 2018.08.08 | 986 |
14 | Linux에서 LVM 사용 | 명품관 | 2020.11.10 | 846 |
13 | top logging script | Talros | 2020.01.17 | 818 |
12 | find 사용하기 | 명품관 | 2016.03.04 | 738 |
11 | Alias 사용 | 명품관 | 2021.03.03 | 669 |
10 | Swap File 생성하기 | 명품관 | 2019.04.15 | 661 |
9 | vi 에디터 환경 설정 | 명품관 | 2016.02.02 | 642 |
8 | bpytop 모니터링 툴 | 명품관 | 2021.01.18 | 625 |
7 | Installing RedHat Enterprise Linux 8.0 with screenshots | 명품관 | 2019.09.26 | 543 |