Academy I/Tech Academy

sudo 로 root 권한을 얻지 못하는 문제

openeidos 2015. 1. 14. 16:27

ssh2 로 접속해 sudo su 를 입력 했더니


" minho is not in the sudoers file. This incident will be reported. "


라는 메시지를 보이며 root 권한을 얻지 못했다.


============================================================================
#visudo -f /etc/sudoers


( 일반적으로 vi 로 하지 않고 visudo 를 이용해 편집한다. 문법검사도 해주므로. )


root@r2adve-note:/staff# cat /etc/sudoers

#

# This file MUST be edited with the 'visudo' command as root.


 ~ 생략 ~


# User privilege specification

root    ALL=(ALL:ALL) ALL

============================================================================


# User privilege specification

root     ALL=(ALL:ALL) ALL

oracle  ALL=(ALL:ALL) ALL    - 추가 -

minho  ALL=(ALL:ALL) ALL    - 추가 -