Skip to main content
added 1 character in body
Source Link
Stéphane Chazelas
  • 584.8k
  • 96
  • 1.1k
  • 1.7k

You can always do:

sudo env "PATH=$PATH" godi_console

As a security measure on Debian, /etc/sudoers has the secure_path option set to a safe value.

Note that:

sudo "PATH=$PATH" godi_console

Where sudo treats leading arguments containing = characters as environment variable assignments by itself, would also work at running godi_console with your $PATH (as iooiseopposed to the secure_path) in its environment, but would not affect sudo's search path for executable, so wouldn't help sudo in finding that godi_console.

You can always do:

sudo env "PATH=$PATH" godi_console

As a security measure on Debian, /etc/sudoers has the secure_path option set to a safe value.

Note that:

sudo "PATH=$PATH" godi_console

Where sudo treats leading arguments containing = characters as environment variable assignments by itself, would also work at running godi_console with your $PATH (as iooise to the secure_path) in its environment, but would not affect sudo's search path for executable, so wouldn't help sudo in finding that godi_console.

You can always do:

sudo env "PATH=$PATH" godi_console

As a security measure on Debian, /etc/sudoers has the secure_path option set to a safe value.

Note that:

sudo "PATH=$PATH" godi_console

Where sudo treats leading arguments containing = characters as environment variable assignments by itself, would also work at running godi_console with your $PATH (as opposed to the secure_path) in its environment, but would not affect sudo's search path for executable, so wouldn't help sudo in finding that godi_console.

added 224 characters in body
Source Link
Stéphane Chazelas
  • 584.8k
  • 96
  • 1.1k
  • 1.7k

You can always do:

sudo env "PATH=$PATH" godi_console

or evenAs a security measure on Debian, /etc/sudoers has the secure_path option set to a safe value.

Note that:

sudo "PATH=$PATH" godi_console

asWhere sudo does treattreats leading arguments containing = characters as environment variable assignments by itself as well.

As a security measure on Debian, would also work at running /etc/sudoersgodi_console haswith your $PATH (as iooise to the secure_path option set to a safe value) in its environment, but would not affect sudo's search path for executable, so wouldn't help sudo in finding that godi_console.

You can always do:

sudo env "PATH=$PATH" godi_console

or even:

sudo "PATH=$PATH" godi_console

as sudo does treat leading arguments containing = characters as environment variable assignments by itself as well.

As a security measure on Debian, /etc/sudoers has the secure_path option set to a safe value.

You can always do:

sudo env "PATH=$PATH" godi_console

As a security measure on Debian, /etc/sudoers has the secure_path option set to a safe value.

Note that:

sudo "PATH=$PATH" godi_console

Where sudo treats leading arguments containing = characters as environment variable assignments by itself, would also work at running godi_console with your $PATH (as iooise to the secure_path) in its environment, but would not affect sudo's search path for executable, so wouldn't help sudo in finding that godi_console.

added 173 characters in body
Source Link
Stéphane Chazelas
  • 584.8k
  • 96
  • 1.1k
  • 1.7k

You can always do:

sudo env "PATH=$PATH" godi_console

or even:

sudo "PATH=$PATH" godi_console

as sudo does treat leading arguments containing = characters as environment variable assignments by itself as well.

As a security measure on Debian, /etc/sudoers has the secure_path option set to a safe value.

You can always do:

sudo env "PATH=$PATH" godi_console

As a security measure on Debian, /etc/sudoers has the secure_path option set to a safe value.

You can always do:

sudo env "PATH=$PATH" godi_console

or even:

sudo "PATH=$PATH" godi_console

as sudo does treat leading arguments containing = characters as environment variable assignments by itself as well.

As a security measure on Debian, /etc/sudoers has the secure_path option set to a safe value.

Source Link
Stéphane Chazelas
  • 584.8k
  • 96
  • 1.1k
  • 1.7k
Loading