새소식

⇥ DevOps Tech 🙋🏻‍♀️/✏️ 환경 구축

sudoers 설정 파일에 없습니다. 이 시도를 보고합니다.

  • -
반응형

Linux 기반의 운영체제는 (Ubuntu, CentOS) 일반계정으로 root 권한이 필요할 때 오류가 발생할 수 있다.

이를 해결하기 위해 /etc/sudoers 파일에 일반계정 권한 설정이 필요하다.


Defaults    secure_path = /sbin:/bin:/usr/sbin:/usr/bin

## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
##      user    MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
docker  ALL=(ALL)       ALL

## Allows members of the 'sys' group to run networking, software,
## service management apps and more.

CentOs 기준으로 위와 같은 양식으로 sudoers 파일이 구성되어 있다.

위 글과 같이 docker 에게 sudo 권한을 부여하였다.

반응형
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.