sudo2 [CentOS] sudo가 안될때 - sudoers 추가 하기 centos를 처음 설치하고 yum 업데이트를 실행하려는데.. itsme is not in the sudoers file. This incident will be reported. 이런 문구가 나왔다. CentOS에서는 기본적으로 일반 유저가 sudo 명령어를 사용 불가능하다. [itsme@localhost ~]$ sudo yum -y update [sudo] password for itsme: itsme is not in the sudoers file. This incident will be reported. 뭔가 하고 찾아보니 sudoers에 로그인한 유저를 추가해 주어야 한다고 한다. 방법은 두 가지가 있다. 1. /etc/sudoers에 유저 추가 하기. 2. sudo 그룹에 유저 추가 하기. 먼.. 2019. 10. 10. [CentOS] sudo 명령어 다음은 sudo 명령어의 옵션 리스트 이다. [itsme@localhost ~]$ sudo -h sudo - execute a command as another user usage: sudo -h | -K | -k | -V usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-T timeout] [-u user] [VAR=value] .. 2019. 10. 10. 이전 1 다음