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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
6 | "리눅스에 대한 마이크로소프트의 사랑", WSL 2의 이해와 시작하기 | 명품관 | 2019.09.23 | 544 |
5 | 절대 경로가 포함된 스크립트 생성 하기 [1] | Talros | 2016.10.10 | 543 |
4 | 세마포어(semaphore) | 명품관 | 2021.12.21 | 489 |
3 | Step by Step Installing CentOS Linux 8 with Screenshots | 명품관 | 2019.09.26 | 310 |
2 | df 명령어 대신 사용할 수 있는 python용 pydf | 명품관 | 2023.03.14 | 186 |
1 | read 명령어 사용법 | 명품관 | 2024.01.22 | 57 |