"Sudo"의 두 판 사이의 차이
1번째 줄: | 1번째 줄: | ||
+ | 설정파일 위치: /etc/sudoers | ||
$ su | $ su | ||
− | + | ||
− | + | == 에러등 == | |
+ | '''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> | </syntaxhighlight> | ||
+ | '''sudo: no tty present and no askpass program specified'''<syntaxhighlight lang="ini"> | ||
+ | 유저명 ALL=(ALL) NOPASSWD: ALL | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | |||
<s>/[[sbin]]/usermod</s> | <s>/[[sbin]]/usermod</s> | ||
<s>$ usermod -aG sudo 유저명</s> | <s>$ usermod -aG sudo 유저명</s> |
2020년 10월 16일 (금) 03:51 판
설정파일 위치: /etc/sudoers
$ su
에러등
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
/sbin/usermod
$ usermod -aG sudo 유저명