>> Edit article
이름
제목
패스워드
/etc/sudoers - 특정호스트에서만 sudo 사용허용하는법 제가 sudo를 사용해야 하는데 특정 호스트에서 접속했을때만 사용하도록 허용하고 싶은데..어떻게 구성해야 하나요?? ]# cat /etc/sudoers #canux.pe.kr real IP = 211.112.37.254 Host_Alias SERVER=canux.pe.kr,211.112.37.254 canux SERVER=(ALL) ALL 이렇게 적어주고 canux.pe.kr이란곳에서 지금 현재 sudo를 설정한 서버에 접속하여 실행했더니 적용이 안되거군요~ ]$ sudo su - canux is not allowed to run sudo on chongnux. This incident will be reported. 이전에도 테스트 할때도 그랬지만 이상하네요... /etc/hosts내용입니다. cat /etc/hosts 211.112.37.130 canux.pe.kr canux 정상 작동되어야 하는데 이상하게....안되네요.... 혹시 아시는 분 알려주세요.. sudo 매뉴얼은 아래 주소에도 있습니다. http://canux.pe.kr/Board/read.php?Menu=Linux&table=Linuxtip&no=247 좋은 하루 보내세요~~
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved