728x90
728x170
■ sudo 명령 사용시 패스워드 입력없이 사용하는 방법을 보여준다.
1. CTRL + ALT + T 키를 눌러서 [터미널]을 실행한다.
2. [터미널]에서 아래 명령을 실행한다.
▶ 실행 명령
sudo nano /etc/sudoers
3. /etc/sudoers 파일에서 특정 사용자에 대한 패스워드 입력 생략 설정을 추가하고 저장한다.
▶ 파일 편집
#
# 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
# 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
king ALL=NOPASSWD:ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
※ 위의 경우 king 사용자 계정에 대해 패스워드 입력 생략 설정을 추가하였다.
728x90
그리드형(광고전용)
'OS > Ubuntu' 카테고리의 다른 글
[OS/UBUNTU] 커널 용량 확인하기 (0) | 2023.01.06 |
---|---|
[OS/UBUNTU] CyberGhostVPN 로그 추출하기 (0) | 2022.12.20 |
[OS/UBUNTU] NordVPN 로그 추출하기 (0) | 2022.11.21 |
[OS/UBUNTU] CyberGhostVPN CLI 앱 설치하기 (0) | 2022.11.14 |
[OS/UBUNTU] CyberGhostVPN CLI 명령 사용하기 (0) | 2022.11.14 |
[OS/UBUNTU] chmod 명령 : 사용자에게 폴더 쓰기 권한 부여하기 (0) | 2022.10.30 |
[OS/UBUNTU] 크롬 브라우저 캐시 삭제하기 (0) | 2022.10.18 |
[OS/UBUNTU] 미사용시 잠금 화면 비활성화하기 (0) | 2022.10.12 |
[OS/UBUNTU] 구글 크롬 브라우저에서 모든 개인 사용자 데이터 지우기 (0) | 2022.09.09 |
[OS/UBUNTU] bash 히스토리 완전히 지우기 (0) | 2022.09.01 |