1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

sudoerをぶっ壊したんですか!?

Posted at

最初に

ここに来た人はおそらくこのようなエラーがsudoをしたときに出ましたね?
Ricomac:~ jr485$ sudo ls sudo: can't open /private/etc/sudoers: Permission denied sudo: no valid sudoers sources found, quitting

「とにかくどうやって直すのか教えて」っていうせっかちな人へ

suしてrootにログインしてchmod g+x /をする。

原因

sudoerファイルをvisudo以外で弄ると事故る。1

対策

sudoer弄る時visudo以外使わない。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?