Skip to content

sudo 時に PATH を引き継ぐ

   

which java と sudo which java でパスが違ったのでその解決

参考: sudo「コマンドが見つかりません」PATHが初期化されているときの対処法

$ sudo su -
$ visudo
# search by secure_path and comment out and describe Defaults env_keep += "PATH"
# secure_path = /sbin:/bin:/usr/sbin:/usr/bin
Defaults env_keep += "PATH"
view raw Command.md hosted with ❤ by GitHub

  1. I also want to check the response header when sending JSON in post with curl
  2. Sending JSON in post with curl
  3. Disable root login