Add path to sudo secure_path

I am trying to add a path, for example say / usr / local / ssh, in /etc/sudoers.d/path to / etc / sudoers, which already has:

Default is secure_path = "/ usr / bin: / sbin"

How can I add another path to secure_path in /etc/sudoers.d/path without changing the default sudoers settings. If I put this in a new file, then it overrides the default secure_path in sudoers .:

Default is secure_path = "/ usr / bin: / sbin"

+4
source share

All Articles