[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2021-07-28 Thread Steve Langasek
** Changed in: openssh (Ubuntu) Status: Invalid => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1659719 Title: ssh can't call a binary from a snap without the full path To manage

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2021-07-28 Thread Brian Murray
** Changed in: openssh (Ubuntu) Status: Confirmed => Invalid ** Changed in: openssh (Ubuntu Groovy) Status: Confirmed => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1659719

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-10-14 Thread Matthieu Clemenceau
** Tags added: fr-78 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1659719 Title: ssh can't call a binary from a snap without the full path To manage notifications about this bug go to: https://bug

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-10-12 Thread Launchpad Bug Tracker
This bug was fixed in the package pam - 1.1.8-3.2ubuntu2.3 --- pam (1.1.8-3.2ubuntu2.3) xenial; urgency=medium * Move patch fixing LP: #1666203 from debian/patches to debian/patches-applied so it actually gets applied. * debian/libpam-modules.postinst: Add /snap/bin to $PATH i

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-10-01 Thread Michael Hudson-Doyle
And verified on xenial: (client-server-5)mwhudson@anduril:~/src/subiquity$ ssh ubuntu@10.187.142.193 "sh -c 'dpkg-query -W libpam-modules; type go '" libpam-modules:amd641.1.8-3.2ubuntu2.1 go: not found (client-server-5)mwhudson@anduril:~/src/subiquity$ lxc exec lp1659719-xenial -- apt insta

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-09-30 Thread Brian Murray
Hello Leo, or anyone else affected, Accepted pam into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/pam/1.1.8-3.2ubuntu2.3 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubu

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-09-29 Thread Brian Murray
The fix for this in the queue for Xenial is help up by the verification of bug 1666203. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1659719 Title: ssh can't call a binary from a snap without the f

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-08-31 Thread Steve Langasek
** Changed in: openssh (Ubuntu Xenial) Status: New => Won't Fix ** Changed in: openssh (Ubuntu Bionic) Status: New => Won't Fix ** Changed in: openssh (Ubuntu Focal) Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, whic

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-08-31 Thread Launchpad Bug Tracker
This bug was fixed in the package pam - 1.3.1-5ubuntu4.1 --- pam (1.3.1-5ubuntu4.1) focal; urgency=medium * debian/libpam-modules.postinst: Add /snap/bin to $PATH in /etc/environment. (LP: #1659719) -- Michael Hudson-Doyle Wed, 22 Jul 2020 11:30:44 +1200 ** Changed in: pam

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-08-25 Thread Brian Murray
If kopanocore is known to be flaky on armhf please add a hint for it to https://code.launchpad.net/~ubuntu-sru/britney/hints-ubuntu-focal/. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1659719 Title:

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-08-25 Thread Launchpad Bug Tracker
This bug was fixed in the package pam - 1.1.8-3.6ubuntu2.18.04.2 --- pam (1.1.8-3.6ubuntu2.18.04.2) bionic; urgency=medium * debian/libpam-modules.postinst: Add /snap/bin to $PATH in /etc/environment. (LP: #1659719) -- Michael Hudson-Doyle Wed, 22 Jul 2020 11:40:59 +1200 **

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-08-20 Thread Michael Hudson-Doyle
And bionic: mwhudson@anduril:~$ ssh ubuntu@10.187.142.63 "sh -c 'dpkg-query -W libpam-modules; type go '" libpam-modules:amd641.1.8-3.6ubuntu2.18.04.1 go: not found mwhudson@anduril:~$ lxc exec test-pam-bionic -- apt install -y libpam-modules/bionic-proposed Reading package lists... Done Bui

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-08-20 Thread Michael Hudson-Doyle
The focal autopkgtest failures are in cyrus-imapd: Mail::JMAPTalk version 0.15 required--this is only version 0.13 at ./Cassandane/Cyrus/JMAPCore.pm line 47. BEGIN failed--compilation aborted at ./Cassandane/Cyrus/JMAPCore.pm line 47. This seems very unlikely to be due to pam, and it happens wit

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-08-20 Thread Michael Hudson-Doyle
Verified on focal: mwhudson@anduril:~$ ssh ubuntu@10.187.142.128 "sh -c 'dpkg-query -W libpam-modules; type go '" libpam-modules:amd641.3.1-5ubuntu4 go: not found mwhudson@anduril:~$ lxc exec test-pam-focal -- apt install -y libpam-modules/focal-proposed Reading package lists... Done Buildin

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-07-28 Thread Brian Murray
Hello Leo, or anyone else affected, Accepted pam into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/pam/1.1.8-3.6ubuntu2.18.04.2 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wi

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-07-23 Thread Łukasz Zemczak
Hello Leo, or anyone else affected, Accepted pam into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/pam/1.3.1-5ubuntu4.1 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-07-21 Thread Michael Hudson-Doyle
** Description changed: - ssh can't call a binary from a snap, it will only work using the full - path. + [impact] + ssh can't call a binary from a snap, it will only work using the full path. + + [test case] + Create a container. Install the go snap (and make sure golang-go is not installed). R

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-07-14 Thread Launchpad Bug Tracker
This bug was fixed in the package pam - 1.3.1-5ubuntu5 --- pam (1.3.1-5ubuntu5) groovy; urgency=medium * debian/libpam-modules.postinst: Add /snap/bin to $PATH in /etc/environment. (LP: #1659719) -- Michael Hudson-Doyle Fri, 10 Jul 2020 08:35:49 +1200 ** Changed in: pam (Ub

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-07-11 Thread Bug Watch Updater
** Changed in: openssh (Debian) Status: Unknown => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1659719 Title: ssh can't call a binary from a snap without the full path To manage notifi

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-07-11 Thread Mathew Hodson
** Also affects: openssh (Debian) via https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964580 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1659719 Ti

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-07-09 Thread Michael Hudson-Doyle
** No longer affects: snapd (Ubuntu) ** No longer affects: snapd (Ubuntu Groovy) ** Also affects: pam (Ubuntu Xenial) Importance: Undecided Status: New ** Also affects: openssh (Ubuntu Xenial) Importance: Undecided Status: New ** Also affects: livecd-rootfs (Ubuntu Xenial)

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-07-08 Thread Michael Hudson-Doyle
I've filed https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964580 about the pam ordering issue. ** Bug watch added: Debian Bug tracker #964580 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964580 -- You received this bug notification because you are a member of Ubuntu Bugs, which is sub

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-07-08 Thread Michael Hudson-Doyle
Here's a better patch that I've tested this time. I dropped the code around adding /usr/local/games to PATH as that was in trusty. ** Changed in: pam (Ubuntu Groovy) Status: Confirmed => In Progress ** Patch added: "pam_1.3.1-5ubuntu4_1.3.1-5ubuntu5.patch" https://bugs.launchpad.net/sn

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-07-08 Thread Steve Langasek
The inconsistency between login and openssh session module ordering is still an issue. Reopening. ** Changed in: openssh (Ubuntu Groovy) Status: Won't Fix => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bug

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-07-08 Thread Robie Basak
Given Colin's comment 12, it doesn't look like there are any plans to change this in openssh packaging so I'll mark this Won't Fix. ** Changed in: openssh (Ubuntu Groovy) Status: Confirmed => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-07-03 Thread Paride Legovini
That won't be too different from /usr/local/sbin and /usr/local/bin being in the PATH but empty I think. I am not aware of any problem or annoyance caused by nonexisting directories being in the PATH. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscrib

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-07-02 Thread Ubuntu Foundations Team Bug Bot
** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1659719 Title: ssh can't call a binary from a snap without the full path To manage notifications about this bug go to: https://bug

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-07-02 Thread Michael Hudson-Doyle
It's easy enough to unconditionally add /snap/bin to path, see attached, but I can't really see a clean way to only have it present in the $PATH when snapd is installed (without code changes to pam_env, anyway). ** Patch added: "pam_1.3.1-5ubuntu4_1.3.1-5ubuntu5.patch" https://bugs.launchpad.n

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-05-22 Thread Francis Ginther
** Tags added: id-5ec69c5a5bc4156ecefb75a0 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1659719 Title: ssh can't call a binary from a snap without the full path To manage notifications about this

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-05-21 Thread Brian Murray
** Changed in: pam (Ubuntu Groovy) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1659719 Title: ssh can't call a binary from a snap without the full path To manag

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-05-21 Thread Brian Murray
** Also affects: pam (Ubuntu Groovy) Importance: Undecided Status: Confirmed ** Also affects: openssh (Ubuntu Groovy) Importance: Undecided Status: Confirmed ** Also affects: livecd-rootfs (Ubuntu Groovy) Importance: Medium Assignee: Oliver Grawert (ogra) Status

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-05-21 Thread Brian Murray
** Changed in: livecd-rootfs (Ubuntu) Status: Fix Committed => Fix Released ** Tags removed: rls-gg-incoming -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1659719 Title: ssh can't call a bin

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-05-19 Thread Brian Murray
** Tags added: rls-gg-incoming -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1659719 Title: ssh can't call a binary from a snap without the full path To manage notifications about this bug go to: h

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-05-14 Thread Paride Legovini
+1, tweaking /etc/environment makes it work. It seems that this has to be fixed in the libpam-modules postinst script then. ** Changed in: pam (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. ht

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-05-13 Thread Steve Langasek
I know that work was done to ensure /snap/bin was in the default path for systemd itself and that this should be inherited now by all units. 'systemd-path | grep search-binaries:' shows that it's there on my focal system. 'sudo ps axe | grep sshd' also shows that it's set in the PATH environme

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-05-13 Thread Steve Langasek
It looks like the likely cause here is that sshd loads pam, which calls pam_env, which reads /etc/environment, which has a different PATH than the default one provided by systemd. We should fix this to be aligned. -- You received this bug notification because you are a member of Ubuntu Bugs, whi

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2020-05-13 Thread Johan Ehnberg
This is fairly problematic when core functionality that is orchestrated in the cloud moves from deb to snap. In our example, lxc (LXD command line tool) was assumed to be in the path when building the orchestration. Using the full path makes it less portable. It also makes managing multiple release

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2019-08-27 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: openssh (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1659719 Title: ss

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2018-06-18 Thread Colin Watson
I'm very reluctant to reconfigure openssh for this; it feels like a layering violation, and a regression of all the work we did way back when to avoid having to change umpteen packages when we want to change the default command search path. How about something like adding a pam_snap session module

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2018-06-18 Thread Dimitri John Ledkov 🌈
** Also affects: openssh (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1659719 Title: ssh can't call a binary from a snap without the full path

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2018-06-18 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: snapd (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1659719 Title: ssh

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2018-06-18 Thread Robie Basak
Adding a task against the Ubuntu snapd package for the non-interactive shell case (eg. ssh), since this still affects Ubuntu the distribution on this point. ** Also affects: snapd (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2017-09-20 Thread Greg Lutostanski
Yes it obviously works for login shells. To make it work for non-login shells /etc/environment would need to include /snap/bin -- an issue for foundations to decide upon. Thanks for the insight. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed t

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2017-09-20 Thread Oliver Grawert
this has been fixed long ago and you should have an /etc/profile.d/apps- bin-path.sh file that adds /snap/bin to your PATH -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1659719 Title: ssh can't call

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2017-09-19 Thread Greg Lutostanski
Still hitting this with... jenkins@juju-6f7422-solutions-qa-integration-1:~$ snap version snap2.27.6 snapd 2.27.6 series 16 ubuntu 16.04 kernel 4.4.0-83-generic jenkins@juju-6f7422-solutions-qa-integration-1:~$ snap list Name VersionRev DeveloperNotes conjure-up 2.3.1

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2017-01-27 Thread Oliver Grawert
so with todays edge core snap it now looks like: $ ssh 192.168.2.76 env |grep PATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin $ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubunt

[Bug 1659719] Re: ssh can't call a binary from a snap without the full path

2017-01-27 Thread Oliver Grawert
** Changed in: snappy Status: New => Confirmed ** Changed in: snappy Importance: Undecided => Medium ** Changed in: snappy Assignee: (unassigned) => Oliver Grawert (ogra) ** Also affects: livecd-rootfs (Ubuntu) Importance: Undecided Status: New ** Changed in: livecd-roo