[Git-commits] [grml/grml-live] c55794: sudoers: set Defaults secure_path to have sane def...

Michael Prokop noreply at github.com
Thu Apr 2 12:40:29 CEST 2020


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-live
  Commit: c557940f98cb23335d5f3cc16492eed60936dc32
      https://github.com/grml/grml-live/commit/c557940f98cb23335d5f3cc16492eed60936dc32
  Author: Michael Prokop <mika at grml.org>
  Date:   2020-04-02 (Thu, 02 Apr 2020)

  Changed paths:
    M etc/grml/fai/config/files/etc/sudoers/GRMLBASE

  Log Message:
  -----------
  sudoers: set Defaults secure_path to have sane default settings

If the user (non-root) doesn't have /sbin:/usr/sbin inside $PATH (as
present when invoking `mksh -l`, which causes /etc/profile to be
sourced and setting $PATH), then executing sudo might fail with:

| $ sudo apt-get install rdesktop
| [...]
| dpkg: warning: 'ldconfig' not found in PATH or not executable
| dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
| dpkg: error: 2 expected programs not found in PATH or not executable
| Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin

Ensure to have a working $PATH setting when invoking sudo
by explicitly setting secure_path.

Closes: https://github.com/grml/grml/issues/144




More information about the Git-commits mailing list