"Sudo"의 두 판 사이의 차이

wwiki
이동: 둘러보기, 검색
9번째 줄: 9번째 줄:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
<s>/[[sbin]]/usermod</s>
+
혹은 유저를 sudo 그룹에 추가한다.
  <s>$ usermod -aG sudo 유저명</s>
+
  $ usermod --append --groups sudo 유저명
 
[[분류:명령어]]
 
[[분류:명령어]]

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 유저명