"Sudo"의 두 판 사이의 차이

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

2023년 6월 18일 (일) 05:42 기준 최신판

설정파일 위치: /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 그룹에 추가한다.(ubuntu에서 확인함)

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