-=-= 컴퓨터 =-=-/리눅스 & 유닉스
<user> is not in the sudoers file / sudo 에러
자게남
2011. 4. 13. 14:48
<username> is not in the sudoers file. This incident will be reported
sudo 명령을 이용할때 나타나는 문구이다.
/etc/sudoers 파일을 수정한다.
<username> ALL=(ALL) ALL
다른 방법
#> echo 'USERNAME ALL=(ALL) ALL' >> /etc/sudoers
모든 명령을 패스워드 입력없이 사용하도록 허락하는 방법은 다음과 같다
#> echo 'USERNAME ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
출처 : http://webkebi.zany.kr:9003/board/bView.asp?bCode=11&aCode=2263&cBlock=0&cPageNo=1&sType=0&sString=