-
ubuntu 20.04 sudo su 가 안될때꿀팁 2023. 4. 18. 12:48
sudo su
를 하고 비밀번호를 알맞게 입력했는데 에러가 나는 경우가 있다.
ubuntu is not in the sudoers file. this incident will be reported
이렇게 에러가 난다면,
su root
를 한다음, 아래 블로그의 방법을 따라하면 된다.
chmod 744 /etc/sudoers
요약하자면
sudo vi /etc/sudoers
를 하고 파일의 맨 아래로 내려가서 써주면 된다.
유저이름 ALL=(ALL) ALL
특정 유저로 sudo명령어가 안될때 (XXX is not in the sudoers file.)
아래와같이 sudoers file에 유저가 존재하지 않는다고 뜰 때 postgres@VirtualBox:/home/user$ sudo date postgres is not in the sudoers file. This incident will be reported. root유저로 혹은 sudo권한이 되는 유저를 통해 루트 권
bumday.tistory.com
'꿀팁' 카테고리의 다른 글
폐쇄망에서 mysql 설치하기 (0) 2023.04.06 EC2 java 17,18 설치 (0) 2023.03.31 gradle 로 다운받은 dependency 들을 전부 다른 폴더로 다운받는 방법 (0) 2023.02.27