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 | read 명령어 사용법 | 명품관 | 2024.01.22 | 56 |
25 | df 명령어 대신 사용할 수 있는 python용 pydf | 명품관 | 2023.03.14 | 184 |
24 | Step by Step Installing CentOS Linux 8 with Screenshots | 명품관 | 2019.09.26 | 310 |
23 | 세마포어(semaphore) | 명품관 | 2021.12.21 | 488 |
22 | 절대 경로가 포함된 스크립트 생성 하기 [1] | Talros | 2016.10.10 | 543 |
21 | "리눅스에 대한 마이크로소프트의 사랑", WSL 2의 이해와 시작하기 | 명품관 | 2019.09.23 | 544 |
20 | Installing RedHat Enterprise Linux 8.0 with screenshots | 명품관 | 2019.09.26 | 546 |
19 | bpytop 모니터링 툴 | 명품관 | 2021.01.18 | 629 |
18 | vi 에디터 환경 설정 | 명품관 | 2016.02.02 | 643 |
17 | Swap File 생성하기 | 명품관 | 2019.04.15 | 663 |
16 | Alias 사용 | 명품관 | 2021.03.03 | 673 |
15 | find 사용하기 | 명품관 | 2016.03.04 | 738 |
14 | top logging script | Talros | 2020.01.17 | 830 |
13 | Linux에서 LVM 사용 | 명품관 | 2020.11.10 | 852 |
12 | 리눅스 Free 메모리의 이해 | 명품관 | 2018.08.08 | 989 |
11 | [7.x] hostname 변경하는 hostnamectl 사용법 [1] | 우뽕 | 2020.02.05 | 1000 |
10 | Memory Usage 확인용 스크립트 [2] | 명품관 | 2019.04.15 | 1421 |
9 | 59 Linux Networking commands and scripts | 명품관 | 2019.11.18 | 1592 |
8 | 실시간으로 TCP와 UDP 포트를 감시하는 방법 | 명품관 | 2020.02.05 | 2220 |
7 | iscsi 서버/클라이언트 설정하기(with targetcli) | 명품관 | 2020.11.14 | 2235 |