본문 바로가기
IT/기타

Ansible 리눅스 sudoers 설정 방법

by JGSHIN 2025. 2. 18.
SMALL

우분투

 

vi /etc/sudoers

 

아래와 같이 추가

 

 

# User privilege specification

root    ALL=(ALL:ALL) ALL

jgshin  ALL=(ALL:ALL) ALL

 

# Allow members of group sudo to execute any command

%sudo   ALL=(ALL:ALL) ALL

jgshin  ALL=NOPASSWD: ALL

 

 

centos

 

vi /etc/sudoers

 

 

아래와 같이 추가

 

## Allow root to run any commands anywhere

root    ALL=(ALL)       ALL

jgshin  ALL=(ALL)       ALL

 

## Same thing without a password

# %wheel        ALL=(ALL)       NOPASSWD: ALL

jgshin  ALL=(ALL)       NOPASSWD: ALL

 

LIST

'IT > 기타' 카테고리의 다른 글

Ansible playbook (자주 사용)  (0) 2025.02.18
Ansible config 설정 방법  (0) 2025.02.18
HPE 3Par rcopy 호스트 삭제  (0) 2025.02.17
HPE 3Par rcopy 볼륨생성  (0) 2025.02.17
HPE 3Par 스토리지 Controller 교체 방법  (0) 2025.02.17
📧 이메일 문의
by @ 2025 JGSHIN