주 메뉴 열기

wwiki β

Sudo

Jhkim (토론 | 기여)님의 2023년 6월 18일 (일) 05:39 판

설정파일 위치: /etc/sudoers

에러등

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

%sudo   ALL=(ALL:ALL) ALL
유저명 ALL=(ALL:ALL) ALL

sudo: no tty present and no askpass program specified

유저명 ALL=(ALL) NOPASSWD: ALL

혹은 유저를 sudo 그룹에 추가한다.

$ usermod --append --groups sudo 유저명