메뉴 건너뛰기

Korea Oracle User Group

OS

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 계정이 사용할 수 있도록 추가해 준다.

번호 제목 글쓴이 날짜 조회 수
1 vi 에디터 환경 설정 명품관 2016.02.02 640
위로