갈루아의 반서재

test1 으로 접속시 다음과 같은 오류가 발생하는 경우 아래와 같이 처리한다. 해당 오류와 관련한 문답은 다음 링크에서 확인할 수 있다.

https://unix.stackexchange.com/questions/179954/username-is-not-in-the-sudoers-file-this-incident-will-be-reported


1
2
3
4
 
[sudo] password for test1:
test1 is not in the sudoers file.  This incident will be reported.
 
cs


1
2
3
4
5
6
 
test1@localhost:/$ su -
암호:
root@localhost:~# visudo
root@localhost:~#
 
cs


라인 17와 같이 해당 계정을 등록해준다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root    ALL=(ALL:ALL) ALL
test1   ALL=(ALL:ALL) ALL
 
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
cs


GNU NANO 편집기 단축키에 대한 자세한 설명은 다음 링크를 참조한다

http://studymake.blogspot.kr/2015/06/nano.html