what works is: ogra@styx:~$ sudo cat /etc/sudoers.d/foo Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
ogra@styx:~$ sudo env|grep PATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin but you can only replace the full variable that is originally set in /etc/sudoers, just appending a dir to it via an /etc/sudoers.d/snapd snippet would not work. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1595558 Title: sudo doesn't have /snap/bin in PATH To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1595558/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs