주 메뉴 열기

wwiki β

바뀜

Sudo

235 바이트 추가됨, 2023년 6월 18일 (일) 05:42
편집 요약 없음
$ su $ nano 설정파일 위치: /etc/sudoers에러: == 에러등 =='''is not in the sudoers file. This incident will be reported.'''<syntaxhighlight lang="ini">
%sudo ALL=(ALL:ALL) ALL
유저명 ALL=(ALL:ALL) ALL
</syntaxhighlight>
'''sudo: no tty present and no askpass program specified'''<ssyntaxhighlight lang="ini">/[[sbin]]/usermod유저명 ALL=(ALL) NOPASSWD: ALL</ssyntaxhighlight>  혹은 유저를 sudo 그룹에 추가한다.(ubuntu에서 확인함) <s>$ usermod -aG -append --groups sudo 유저명</s>[[분류:명령어]]
편집
2,431