Ubuntu(우분투) sudo: /etc/sudo.conf is world writable 에러 해결 방법

Ubuntu(우분투) sudo: /etc/sudo.conf is world writable 에러 해결 방법

Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy

sudo 권한을 잘못 건드려서 나타난 문제 -> sudo -s 가 안 먹는다.

권한 문제로 chmod 777 -R /etc 한 것이 주 원인 (망할)

sudo -s 시에 나오는 오류들

sudo: /etc/sudo.conf is world writable
sudo: /etc/sudo.conf is world writable
sudo: /etc/sudoers에 모두가 기록할 수 있습니다
sudo: 올바른 sudoers 설정 원본이 없습니다. 나갑니다.
sudo: error initializing audit plugin sudoers_audit

https://stackoverflow.com/questions/35224391/how-to-fix-this-sudo-etc-sudoers-is-world-writable <- 참고

pkexec chmod 0440 /etc/sudoers

pkexec chmod 0440 /etc/sudoers.d/README

pkexec chmod 0440 /etc/sudo.conf

pkexec chmod 0440 /etc/sudoers.d

댓글 달기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

위로 스크롤