4
2

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.

Debian10(Buster)でvisudoがないと言われたときの対処

Last updated at Posted at 2019-08-11

Debian Busterでユーザーでログインしてからsuに入ったとき、visudoが使えないことがあったのでメモ。

解決法

問題は単純で、suにハイフンを追加することで解決する。
suはオプションにハイフンをつけなければ環境変数がsuに入る前のユーザーのものになってしまう。
それが今回の問題を招いてしまった。

su -   # 環境変数をrootのものに変更
visudo

参考文献

su, su -, su -- の違い  
I can't seem to run visudo on debian buster

4
2
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
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?