"Sudo"의 두 판 사이의 차이

wwiki
이동: 둘러보기, 검색
4번째 줄: 4번째 줄:
 
%sudo  ALL=(ALL:ALL) ALL
 
%sudo  ALL=(ALL:ALL) ALL
 
유저명 ALL=(ALL:ALL) ALL
 
유저명 ALL=(ALL:ALL) ALL
</syntaxhighlight>usermod가 설치된 경우는
+
</syntaxhighlight>usermod
 
  $ usermod -aG sudo 유저명
 
  $ usermod -aG sudo 유저명

2020년 9월 6일 (일) 03:07 판

$ su
$ nano /etc/sudoers

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

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

usermod

$ usermod -aG sudo 유저명