주 메뉴 열기

wwiki β

바뀜

Sudo

237 바이트 추가됨, 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>usermod가 설치된 경우는 '''sudo: no tty present and no askpass program specified'''<syntaxhighlight lang="ini">유저명 ALL=(ALL) NOPASSWD: ALL</syntaxhighlight> 혹은 유저를 sudo 그룹에 추가한다.(ubuntu에서 확인함) $ usermod -aG -append --groups sudo 유저명[[분류:명령어]]
편집
2,431