"Sudo"의 두 판 사이의 차이
(같은 사용자의 중간 판 10개는 보이지 않습니다) | |||
1번째 줄: | 1번째 줄: | ||
− | + | 설정파일 위치: /etc/sudoers | |
− | + | == 에러등 == | |
− | + | '''is not in the sudoers file. This incident will be reported.'''<syntaxhighlight lang="ini"> | |
%sudo ALL=(ALL:ALL) ALL | %sudo ALL=(ALL:ALL) ALL | ||
유저명 ALL=(ALL:ALL) ALL | 유저명 ALL=(ALL:ALL) ALL | ||
− | </syntaxhighlight>< | + | </syntaxhighlight> |
+ | '''sudo: no tty present and no askpass program specified'''<syntaxhighlight lang="ini"> | ||
+ | 유저명 ALL=(ALL) NOPASSWD: ALL | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | 혹은 유저를 sudo 그룹에 추가한다.(ubuntu에서 확인함) | ||
+ | $ usermod --append --groups sudo 유저명 | ||
+ | [[분류:명령어]] |