I tested this in a trusty lxc. Updated sudo to 1.8.9p5-1ubuntu1.3 and:
# mkdir -p /snap/bin
# cp $(which echo) /snap/bin/echo-test
# su ubuntu
$ sudo echo-test test
I'm marking it as verified. Thanks Brian.
** Tags removed: verification-needed
** Tags added: verification-done
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to sudo in Ubuntu.
sudo doesn't have /snap/bin in PATH
Status in snapd package in Ubuntu:
Status in sudo package in Ubuntu:
Status in snapd source package in Trusty:
Status in sudo source package in Trusty:
Status in snapd source package in Xenial:
Status in sudo source package in Xenial:
[ SRU Justification ]
Snap may contain sysadmin tools as well. They are currently hard to invoke
because /snap/bin is not in the PATH when sudo is used because the default
secure_path of sudoers does not have it.
[ SRU Test Case ]
1. sudo snap install hello-world
2. sudo hello-world
3. verify that this fails with "command not found"
4. install sudo from xenial-proposed
5. verify that sudo hello-world now works
[ Regression Potential ]
- may trigger conffile prompts on upgrade
# prints output
$ sudo nextcloud.occ
sudo: nextcloud.occ: command not found
I need to do `sudo /snap/bin/nextcloud.occ` if I want it to run.
$ sudo env | grep PATH
To manage notifications about this bug go to:
Mailing list: https://launchpad.net/~touch-packages
Post to : firstname.lastname@example.org
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp