5
7

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 5 years have passed since last update.

vagrant halt で "sudo: sorry, you must have a tty to run sudo" って言われた

Posted at

まちがって sudo パッケージ削除して yum で入れなおしたら上記のようなエラーが出るようになってしまった。

そんなときは sudo visudo/etc/sudoers を編集

Defaults    requiretty
Defaults:vagrant !requiretty

のように requiretty の後に vagrantユーザだけは requiretty を除外する設定を入れたら解決。

参考

5
7
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
5
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?