From unknown Fri Aug 15 18:06:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#32855 <32855@debbugs.gnu.org> To: bug#32855 <32855@debbugs.gnu.org> Subject: Status: sshuttle /usr/bin/env Reply-To: bug#32855 <32855@debbugs.gnu.org> Date: Sat, 16 Aug 2025 01:06:59 +0000 retitle 32855 sshuttle /usr/bin/env reassign 32855 guix submitter 32855 Nam Nguyen severity 32855 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 27 14:26:11 2018 Received: (at submit) by debbugs.gnu.org; 27 Sep 2018 18:26:11 +0000 Received: from localhost ([127.0.0.1]:56880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g5azL-0007ti-6F for submit@debbugs.gnu.org; Thu, 27 Sep 2018 14:26:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g5axn-0007qh-Gp for submit@debbugs.gnu.org; Thu, 27 Sep 2018 14:24:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5axh-0001Gu-QE for submit@debbugs.gnu.org; Thu, 27 Sep 2018 14:24:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36927) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g5axh-0001Gg-LO for submit@debbugs.gnu.org; Thu, 27 Sep 2018 14:24:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5axg-0000U1-O9 for bug-guix@gnu.org; Thu, 27 Sep 2018 14:24:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5axc-0001Bh-MX for bug-guix@gnu.org; Thu, 27 Sep 2018 14:24:28 -0400 Received: from mail-lj1-f179.google.com ([209.85.208.179]:46597) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g5axc-0001AM-DV for bug-guix@gnu.org; Thu, 27 Sep 2018 14:24:24 -0400 Received: by mail-lj1-f179.google.com with SMTP id 203-v6so3320575ljj.13 for ; Thu, 27 Sep 2018 11:24:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :mime-version:content-disposition:user-agent; bh=X/yq5JtL9w+sJlqCrV1xUWyv4IguCr36gvpJYiWB/TY=; b=mcteqKZzznWZlKll1yRmEWLcGO5hT961eh9AcAqwPgft62w37A1eWfeNueAEmUL1qb YEEUbaskSlsuP8wnCB4YHk7Z4EWrDUHicQFINMUt6sGmieDHwA9qcT8KhcPFqFjbzZIE lzzbUrJzy0uzGx33C7GSfTSMQn7aCMcaS8VNPLRVebkaR7pu5/pPdIX88NLqY6GMBwSi L/vTyJZuVasJKRaok5DCYt2Fr+12S++MAYPaSFFVuMyqSnhNydGeb5keYVIOHI2wu5DU X0w9552+ECsgGh27TELMmOl2/LouHHlP8Jz4PJJOwdOWLKVrwvQbMbWhwiVqcfSRdEDB avxg== X-Gm-Message-State: ABuFfojgylwLfyeHdxwQGLBkc+NkXPcZBPo7YAOrnaTOmFNCt1cfKHsg oz/R6RUZixZeGq0Z/cPWcJe3Ndov X-Google-Smtp-Source: ACcGV60+n3QU/QHc3Pbr5HYvUD0DSZJqcPj9U3xjFgptr3uxPQbTUkdd2o8aON6+hiGG8mCZKhwAOQ== X-Received: by 2002:a2e:7a1a:: with SMTP id v26-v6mr9187849ljc.141.1538072662635; Thu, 27 Sep 2018 11:24:22 -0700 (PDT) Received: from antelope ([24.5.139.14]) by smtp.gmail.com with ESMTPSA id b6-v6sm566447ljb.53.2018.09.27.11.24.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Sep 2018 11:24:21 -0700 (PDT) Date: Thu, 27 Sep 2018 11:23:23 -0700 From: Nam Nguyen To: bug-guix@gnu.org Subject: sshuttle /usr/bin/env Message-ID: <20180927182323.GA30836@antelope> Mail-Followup-To: bug-guix@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 27 Sep 2018 14:26:10 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) sshuttle is a python program that uses /usr/bin/env at line 196 of: /gnu/store/...-sshuttle-0.78.4/lib/python3.6/site-packages/sshuttle/client.py ['sudo', '-p', '[local sudo] Password: ', '/usr/bin/env', Trying to run sshuttle on GuixSD results in: $ sshuttle -r user@server.com 0/0 -x server.com sudo: /usr/bin/env: command not found Here is a potential fix that I recycled from sshoot's recipe. I tested it, and it works. $ diff ~/.config/guix/current/share/guile/site/2.2/gnu/packages/vpn.scm ~/vpn.scm 349a350,357 > (arguments > '(#:phases > (modify-phases %standard-phases > (add-after 'unpack 'patch-paths > (lambda _ > (substitute* "sshuttle/client.py" > (("/usr/bin/env") (which "env"))) > #t))))) Cheers, Nam From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 27 15:11:57 2018 Received: (at 32855) by debbugs.gnu.org; 27 Sep 2018 19:11:57 +0000 Received: from localhost ([127.0.0.1]:56927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g5bhd-0000id-Bv for submit@debbugs.gnu.org; Thu, 27 Sep 2018 15:11:57 -0400 Received: from tobias.gr ([51.15.135.5]:33696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g5bhb-0000iV-HR for 32855@debbugs.gnu.org; Thu, 27 Sep 2018 15:11:56 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id cf582893; Thu, 27 Sep 2018 19:11:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=references :from:to:cc:subject:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=1aK7+sdiWLDezyia9Dom2z 7EMuKxcVyItfyxjiupmtI=; b=nXd/ad78chA+Yg0qd29hCV0Cn7ZmyL1UExmpsp N8C4azwaGEbeoIB7cYi0mHdRJyxgvw5d/XvK3dqaTphzAmHiyolhomMPUmTHXYvJ xVK0EuWXSbcLAxslPeR3CpyoIGhorY3JmJLt6nnx0jiFTb0YH+OKAFHeO9rR2EhQ zmjaDUle02bd5MCCLNC2D3+55ZhNueTmrGcrQD5R32TMgcUKUYbD7XoPZjP9H9Go Wb017XSoU1lmRviD+QsPaBf7c6X5V1AGhIFtn81khgjJKaPv9+fA9g+CQQO+BOcz eXHHDQUywnhJxqBrbNCW2oKMgUT6Fja5c8juVgbopEaIijCw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 22d04749 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 27 Sep 2018 19:11:50 +0000 (UTC) References: <20180927182323.GA30836@antelope> From: Tobias Geerinckx-Rice To: Nam Nguyen Subject: Re: bug#32855: sshuttle /usr/bin/env In-reply-to: <20180927182323.GA30836@antelope> Date: Thu, 27 Sep 2018 21:11:45 +0200 Message-ID: <87va6qhi1a.fsf@tobias.gr> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32855 Cc: 32855@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hullo, Thanks for the report! Nam Nguyen wrote: > sshuttle is a python program that uses /usr/bin/env at line 196 > of: > /gnu/store/...-sshuttle-0.78.4/lib/python3.6/site-packages/sshuttle/client.py > ['sudo', '-p', '[local sudo] Password: ', '/usr/bin/env', > > Trying to run sshuttle on GuixSD results in: > $ sshuttle -r user@server.com 0/0 -x server.com > sudo: /usr/bin/env: command not found This means that sshuttle on vanilla GuixSD has been broken ever since I added it in 2016, which saddens me. I guess nobody else uses it or, like me, they happen to also have a /usr/bin/env symlink. > Here is a potential fix that I recycled from sshoot's recipe. I > tested it, > and it works. > > $ diff > ~/.config/guix/current/share/guile/site/2.2/gnu/packages/vpn.scm > ~/vpn.scm > 349a350,357 >> (arguments >> '(#:phases >> (modify-phases %standard-phases >> (add-after 'unpack 'patch-paths >> (lambda _ >> (substitute* "sshuttle/client.py" >> (("/usr/bin/env") (which "env"))) >> #t))))) I'll push this soon. Is it all right if I mention your name & e-mail in the commit message? Kind regards, T G-R From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 27 15:23:11 2018 Received: (at 32855) by debbugs.gnu.org; 27 Sep 2018 19:23:12 +0000 Received: from localhost ([127.0.0.1]:56935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g5bsV-00010m-MM for submit@debbugs.gnu.org; Thu, 27 Sep 2018 15:23:11 -0400 Received: from mail-lj1-f169.google.com ([209.85.208.169]:41806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g5bsU-00010J-6b for 32855@debbugs.gnu.org; Thu, 27 Sep 2018 15:23:10 -0400 Received: by mail-lj1-f169.google.com with SMTP id y17-v6so3521584ljy.8 for <32855@debbugs.gnu.org>; Thu, 27 Sep 2018 12:23:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=TzZQ7B0ajLX3JlxiwgBds4aTDqpJ6EI3i1FpjHEKRO4=; b=Kcg5MMhoAkKhDRWcBJqDKA3J8AftbVZjyH8zBmNl2AQVmJp3VpcOY/jQuQFhGN39y+ PoDsamVp/cFruol09woGB6SSTn7mFW1CPonlX3Q0PvEVp3nOeJ/g3Mqvwtgw8rmLywv/ Tu5L848HC/q+EMEtFe7VcdmFI0tv1K5xfQa9RLoYArnaNeD6+pKa9qvbnxOmnw6tygcA 43DnCvKb3f0F15VX6AFUhKdSCpXN2arnfl6OmL/E6e1VF4rEZdQS0T8dMz0JIkvjlC+i 3Zx6x4z9lhbyGJZiW/tm81JS4EVoJOVjs7ZEPuSPvYAggD16zJeXKInSNxgPde/2ut+m VS3A== X-Gm-Message-State: ABuFfoiKO8EGAMtLJNL5L5JqrzfsRv4ZdMsTzp6mL+VizRwGVJCzGueg eh6HmbFryg0z6uN6Yvs/c+l/978V X-Google-Smtp-Source: ACcGV60k/eCogPoKvboZynzZAWR2Qnq4KBtAIlWjwK17/5RXkBZIRMbMlGCPlcwxA31bmLEDrWCdwA== X-Received: by 2002:a2e:5159:: with SMTP id b25-v6mr1622132lje.156.1538076183842; Thu, 27 Sep 2018 12:23:03 -0700 (PDT) Received: from antelope ([24.5.139.14]) by smtp.gmail.com with ESMTPSA id c30-v6sm571395lfj.28.2018.09.27.12.23.02 for <32855@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Sep 2018 12:23:03 -0700 (PDT) Date: Thu, 27 Sep 2018 12:22:18 -0700 From: Nam Nguyen To: 32855@debbugs.gnu.org Subject: Re: bug#32855: sshuttle /usr/bin/env Message-ID: <20180927192218.GA11125@antelope> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 32855 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Yes, feel free to mention my name and e-mail. Thank you for your work packaging it. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 27 18:04:18 2018 Received: (at 32855-done) by debbugs.gnu.org; 27 Sep 2018 22:04:18 +0000 Received: from localhost ([127.0.0.1]:57032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g5eOQ-0004vN-J5 for submit@debbugs.gnu.org; Thu, 27 Sep 2018 18:04:18 -0400 Received: from tobias.gr ([51.15.135.5]:33952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g5eON-0004v9-O1 for 32855-done@debbugs.gnu.org; Thu, 27 Sep 2018 18:04:16 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id f4a58705; Thu, 27 Sep 2018 22:04:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=references :from:to:cc:subject:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=OrbdkGU50WrrWiNtDUIe2o xJjWd9E4nTfDeU1DYyVI4=; b=SEnfak/77Q+Mckhb+z7IXXKccA2SM/eMOXtivu 5TbcAZrIpsfQ7zKblBWEX3U3hBgaHLcCJ4H2DIIWgvZmVegA49nSko0xlEJhheIi F3NE0DmDCP1Qt9cTY6Q9YJGuhLkimEPO6n4PnSMObeVQ+GDOLlAMhRqCqq2WaJby O2Sq4Bwc57RUAw46+OHh6fLXhKl4DlG0G2R0l1snEF4EiXoaYthtAi8AffrwB1S0 c/sNFpx8Z3F5aNPNNLD3+MVL+UH4TWekKohAwNOR2KMt3IBWoPZTEXxLh1H4+joI 7MPASufKXm8dpoQznylIfrbpM6YDjb+7Cako/S9JOaFcsLog== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 24a8d557 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 27 Sep 2018 22:04:12 +0000 (UTC) References: <20180927182323.GA30836@antelope> <20180927192218.GA11125@antelope> From: Tobias Geerinckx-Rice To: Nam Nguyen Subject: Re: bug#32855: sshuttle /usr/bin/env In-reply-to: <20180927192218.GA11125@antelope> Date: Fri, 28 Sep 2018 00:04:10 +0200 Message-ID: <87o9ciha1x.fsf@tobias.gr> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32855-done Cc: 32855-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Nam Nguyen wrote: > Yes, feel free to mention my name and e-mail. Pushed as 6a6f7488df1794828e1845eaaf2c1c911c8e3e54. Kind regards, T G-R From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 29 18:40:49 2018 Received: (at 32855) by debbugs.gnu.org; 29 Sep 2018 22:40:49 +0000 Received: from localhost ([127.0.0.1]:59254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6Nur-0003br-0r for submit@debbugs.gnu.org; Sat, 29 Sep 2018 18:40:49 -0400 Received: from mail-pg1-f174.google.com ([209.85.215.174]:43687) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6Nup-0003ba-DN for 32855@debbugs.gnu.org; Sat, 29 Sep 2018 18:40:48 -0400 Received: by mail-pg1-f174.google.com with SMTP id q19-v6so6883592pgn.10 for <32855@debbugs.gnu.org>; Sat, 29 Sep 2018 15:40:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ZGV1lI6K9CUkpTQ+IDSjFpxBiYTfUPy7Vd0kN7tkyx4=; b=UGIyNwFn/GlNFlQw+S6S4IFy9r0RNvC2IIKxEGI3M+cBYBGWe9szYCwBSmhznQ8gyd yom5eLQXTmqyx8E4kHueCIC+mt4szgcePd/EnYwE5MIvIe6+2H/LxjxHv/opbdgJ4FU/ SLanCSJGUjU8gafGY2yCP6/tXydXyzpMUGvcZ4VjS2/rAY2EPeXdgRkR1rr23wFdgPOA 4f9oYDFuKxLw6boIP/G0mzI16Z98GCyLU/2N5wsS8MRDgRN1sMOUpfkXGlsnAtovSXm7 WIobvtUF8JxdXjlzm6G1kJGjiTML1OrCGE3qBQxZHRw21YmhJWxu1fj5fkgIT1VPZwmL SrlA== X-Gm-Message-State: ABuFfoi0oOEOvox9LsldJgSv680Eo/jN7xZ+Ga0yKIUxf7j6uxKofwQ6 SitQO17vhw1Cp7GlQZIC+GkK3tGN X-Google-Smtp-Source: ACcGV61q3GClgUrTGjVoiz/Gy5A3NnPQL8414fjUbb9O9QyQp8Cmog0ehtpCq4ACJFjjAo5aleY72g== X-Received: by 2002:a63:cc04:: with SMTP id x4-v6mr4314160pgf.33.1538260841388; Sat, 29 Sep 2018 15:40:41 -0700 (PDT) Received: from antelope ([24.5.139.14]) by smtp.gmail.com with ESMTPSA id s85-v6sm14303303pfa.116.2018.09.29.15.40.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Sep 2018 15:40:40 -0700 (PDT) Date: Sat, 29 Sep 2018 15:40:01 -0700 From: Nam Nguyen To: Tobias Geerinckx-Rice Subject: Re: bug#32855: sshuttle /usr/bin/env Message-ID: <20180929224001.GA10179@antelope> References: <20180927182323.GA30836@antelope> <20180927192218.GA11125@antelope> <87o9ciha1x.fsf@tobias.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87o9ciha1x.fsf@tobias.gr> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 32855 Cc: 32855@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Hi Tobias, After testing, I think the /bin/sh substitution introduced a regression. Lines in question: (substitute* "sshuttle/ssh.py" ;; Perhaps this is unreachable, but don't let's take risks. (("/bin/sh") (which "sh"))) $ sshuttle -r user server.com 0/0 -x server.com ksh: /gnu/store/rb...-bash-minimal-4.4.19/bin/sh: not found client: fatal: server died with error code 127 The server I am sshing to is not running GuixSD. It is trying to find /gnu/store/.../bin/sh but it doesn't exst. My local client is running GuixSD. The only requirements on the server side should be Python. Should those lines should be removed? I tested without, and it seems to work okay, at least for my particular setup: GuixSD client --> non-GuixSD server. I suppose we have to state the assumptions of whether the client and server are running Guix or not, and arrive at good defaults. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 30 07:53:03 2018 Received: (at 32855) by debbugs.gnu.org; 30 Sep 2018 11:53:03 +0000 Received: from localhost ([127.0.0.1]:59481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6aHX-0000Ep-Hh for submit@debbugs.gnu.org; Sun, 30 Sep 2018 07:53:03 -0400 Received: from tobias.gr ([51.15.135.5]:37946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6aHW-0000EP-3r for 32855@debbugs.gnu.org; Sun, 30 Sep 2018 07:53:03 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id aaf6f2d7; Sun, 30 Sep 2018 11:52:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=references :from:to:cc:subject:in-reply-to:date:message-id:mime-version :content-type:content-transfer-encoding; s=2018; i=me@tobias.gr; bh=gi8ffahQq1Sn5GzlDyMspGkntgSEwTwDSI8E3gektXI=; b=fthkOK2gW2tT 5Za25kJHcOc+PaqG7L7ReU6j/iT/k3R4jDi53OpOHvQ4NK0BcDGNMvrJpJ4ggmwp QS8IZgVx7cVw5bl1U+JLaAZ+XbFOjJmvHoadFhmb7G6JGPpTFMBUTF5RZEKunL17 GUxxvWgPsD5Kd9fKQm0O0YVdxaOuOBTiC8H4N1JnRCeLjW0Y68GfFqdQXLhVwUa4 51XyT1r3Nf8XJ+FmPAjzuh6vbwl8NTjfx61/oXGA40f8dzeJHNTlHicLmFwCHJ49 ikSjVGumTo651zv+hKOATICszLfDKhTHGdjtTtRsRzaBgdPfank4AxUPDRJBJvzV dHti/WajkA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id cc45eb29 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sun, 30 Sep 2018 11:52:57 +0000 (UTC) References: <20180927182323.GA30836@antelope> <20180927192218.GA11125@antelope> <87o9ciha1x.fsf@tobias.gr> <20180929224001.GA10179@antelope> From: Tobias Geerinckx-Rice To: Nam Nguyen Subject: Re: bug#32855: sshuttle /usr/bin/env In-reply-to: <20180929224001.GA10179@antelope> Date: Sun, 30 Sep 2018 13:52:56 +0200 Message-ID: <87h8i7cicn.fsf@tobias.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32855 Cc: 32855@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hullo, Nam Nguyen wrote: > Hi Tobias, > > After testing, I think the /bin/sh substitution introduced a=20 > regression. > > Lines in question: > (substitute* "sshuttle/ssh.py" > ;; Perhaps this is unreachable, but don't let's take risks. Oh, the irony. > (("/bin/sh") (which "sh"))) This is just wrong: it calls the client's /gnu/store/.../sh on the=20 server. > $ sshuttle -r user server.com 0/0 -x server.com > ksh: /gnu/store/rb...-bash-minimal-4.4.19/bin/sh: not found > client: fatal: server died with error code 127 > > The server I am sshing to is not running GuixSD. It is trying to=20 > find > /gnu/store/.../bin/sh but it doesn't exst. That's a good point (all my remotes run GuixSD, hiding the bug). > The only requirements on the server side should be Python. It's all well & good for upstream to say that (they do), but if=20 they explicitly call /bin/sh on the server then it's just not=20 true. A POSIX-compliant 'sh' was always an unstated server-side=20 dependency, and Guix happens to be very good at finding (and=20 breaking :-) those. The hard-coded '/bin/' kluge was accepted later=C2=B9. Can't fathom=20 why. If brianmay's last comment is still true they'll accept the=20 correct 'exec sh' solution too. Could you check whether replacing '(which "sh")' with '"sh"'=20 works? It does for me. > Should those lines should be removed? I tested without, and it=20 > seems to work okay, > at least for my particular setup: GuixSD client --> non-GuixSD=20 > server. Wouldn't that break [any client -> vanilla GuixSD server] cases? No denying that this regression needs to be fixed,=20 though. Apologies for breaking your 'flow. > I suppose we have to state the assumptions of whether the client=20 > and > server are running Guix or not, and arrive at good defaults. I'd like to avoid such assumptions in general, and entirely on the=20 Internet. Kind regards, T G-R 1. https://github.com/sshuttle/sshuttle/pull/77 From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 30 10:45:58 2018 Received: (at 32855) by debbugs.gnu.org; 30 Sep 2018 14:45:58 +0000 Received: from localhost ([127.0.0.1]:60095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6cys-0004co-13 for submit@debbugs.gnu.org; Sun, 30 Sep 2018 10:45:58 -0400 Received: from mail-pg1-f173.google.com ([209.85.215.173]:45856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6cyq-0004cb-JG for 32855@debbugs.gnu.org; Sun, 30 Sep 2018 10:45:57 -0400 Received: by mail-pg1-f173.google.com with SMTP id t70-v6so7638094pgd.12 for <32855@debbugs.gnu.org>; Sun, 30 Sep 2018 07:45:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=QPVjGDTiMGfe8UO7/fhH07h+japSnqB341pjZVEkA2E=; b=HxS5SuKC0x0ktRwqWq7a1kEzwK7ruDKr8S/Qhp3/kX6YqZUFZQX9xi8Rrb8eJxykIC sdVWhlCpph/h5Tq5XQIaAZ6hxXuwjuNsdqspeZKUqa4rMJyb1NxUcALFKtRHC7Dg/tFm m0oj6AFph7AtgtG44MAOYPyrpW0Ios5a7RcOIXpmPOJv+xHrZ6hpfYh3ccia6I/YCs9+ Xhrhi2XJSfFqgQN1rjyZBaK7rFSjAAm2DgRHQ0ol3gqDLSQyUQiTeMQj/4TJTH451BpE OJoCYfijwlBq3QO/7+SAJgh2N3I+fDAb2ZgTuXFm0x0loUTz/YxPG/pjRvKyKd1lBcXc 6wYQ== X-Gm-Message-State: ABuFfogElUKL0Un0nT+f1+3tsGodTK+mHbW3C1hHy1L8FP1h0NClQ/7O edt0abw6z+dzRZfzAagA+bg= X-Google-Smtp-Source: ACcGV62ay1kQxs95aoXizl28CfEXHzKMjjNl7NxlX1pCBA+vhrkJdnEJP2F6p9JXafz40oRM/z2t1Q== X-Received: by 2002:a62:808c:: with SMTP id j134-v6mr7255457pfd.47.1538318750559; Sun, 30 Sep 2018 07:45:50 -0700 (PDT) Received: from antelope ([24.5.139.14]) by smtp.gmail.com with ESMTPSA id l16-v6sm2616070pfb.75.2018.09.30.07.45.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Sep 2018 07:45:49 -0700 (PDT) Date: Sun, 30 Sep 2018 07:45:05 -0700 From: Nam Nguyen To: Tobias Geerinckx-Rice Subject: Re: bug#32855: sshuttle /usr/bin/env Message-ID: <20180930144505.GA996@antelope> References: <20180927182323.GA30836@antelope> <20180927192218.GA11125@antelope> <87o9ciha1x.fsf@tobias.gr> <20180929224001.GA10179@antelope> <87h8i7cicn.fsf@tobias.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87h8i7cicn.fsf@tobias.gr> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 32855 Cc: 32855@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) > This is just wrong: it calls the client's /gnu/store/.../sh on the server. Thanks for identifying the problem. Your solution sounds good. > Could you check whether replacing '(which "sh")' with '"sh"' works? It does > for me. Yes, this works in my testing. > A POSIX-compliant 'sh' was always an unstated server-side dependency, > and Guix happens to be very good at finding (and breaking :-) those. Guix is great, and I am enjoying learning more about it! I suppose these are the challenges that come with making software portable. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 06 10:19:31 2018 Received: (at 32855) by debbugs.gnu.org; 6 Oct 2018 14:19:31 +0000 Received: from localhost ([127.0.0.1]:38728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8nQZ-0004P4-4E for submit@debbugs.gnu.org; Sat, 06 Oct 2018 10:19:31 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:44609) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8nQX-0004Ow-Rk for 32855@debbugs.gnu.org; Sat, 06 Oct 2018 10:19:30 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 97F2521FAD; Sat, 6 Oct 2018 10:19:29 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sat, 06 Oct 2018 10:19:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm1; bh=9tpD32Qhfo3BwCDI1TOO6UD3kW jy7sncij24hn6B8go=; b=azKCqj8exD18AkOp/dSxY2gqvuDVEQ3aKs5IX70jii yxZ09JK0D83CRCHeTFZfJHch/L9QKQUMDckkskgvGRxvT2Wg8FWyM+7PNLj/ybyr RfdCFTo9DJHA2cfnUaNkhBZmYAiTbGGyUYMXU/pZFOYIPMZncWDTp/03b5N0Ac6x ojt0fxJnuQTeVP0bKvS+FcsDn4LHN9IoLRY4KCJNnjt4wOnp+DzHXpPHytepWDRt rO2SD8iZGWlcdZrcFBVlxSi02w3akmM2UU/wQXIDSL8CB3iN2JbN2CrU12oIM4os p1eC8uQqyeiEM4IC1V/30yIeffgb35XV2eqkk7/GEPqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=9tpD32 Qhfo3BwCDI1TOO6UD3kWjy7sncij24hn6B8go=; b=nU6UUAHncKOxrmE5SvZKPi snCorIFm3YNoMaOb+/5g67pe5Os0jkiAO03GP329c8Gdqr6JQ8hlQ5epov9j6k6H qS2vZzbAVPd15ApnrjcucNnRB1tIrFNSPzzxFyjA+vWWF7jynGmop6QNNfc+9DRR /c17VUFCAOnbJ3f/9AQ5j29+zJI2ALV1TDstv/Kf8M1/V0mwsQ2Eo/kiXyhVxsIB /E1sqIZqh9XMs4id0cANIyEHTqI9PsyO64rbqv9aML+ct33KGIeNNB26SuzNKTi9 JzxO67yxzXaX+Y1DM4rBBigjAOfz7d+cifbQ+L3euerlbNszOXbhKatc5sxGquOg == X-ME-Sender: X-ME-Proxy: Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140]) by mail.messagingengine.com (Postfix) with ESMTPA id A716C102D3; Sat, 6 Oct 2018 10:19:28 -0400 (EDT) From: Marius Bakke To: Tobias Geerinckx-Rice , Nam Nguyen Subject: Re: bug#32855: sshuttle /usr/bin/env In-Reply-To: <87h8i7cicn.fsf@tobias.gr> References: <20180927182323.GA30836@antelope> <20180927192218.GA11125@antelope> <87o9ciha1x.fsf@tobias.gr> <20180929224001.GA10179@antelope> <87h8i7cicn.fsf@tobias.gr> User-Agent: Notmuch/0.27 (https://notmuchmail.org) Emacs/26.1 (x86_64-pc-linux-gnu) Date: Sat, 06 Oct 2018 16:19:22 +0200 Message-ID: <87va6fi2dx.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32855 Cc: 32855@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Tobias Geerinckx-Rice writes: >> Should those lines should be removed? I tested without, and it=20 >> seems to work okay, >> at least for my particular setup: GuixSD client --> non-GuixSD=20 >> server. > > Wouldn't that break [any client -> vanilla GuixSD server] cases? Note that /bin/sh is present even on vanilla GuixSD. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlu4xGoACgkQoqBt8qM6 VPpoxQf+O6o2UNk0A8xdyRJKOJ3aLQVJHexpZDBLotprga3WyGrzXlUuNTOAxWgL glywjWxQpQi6VHFhZlKOin0xh2ULKoMUdSEWDrCLcJnA+h8sONFeYE2oD+ZEK4YA 3n1CsRUfxeGWY5GtOAqrDXeKnqpOqQ7VbsdoNXbtv7qP2YY6jyNHIBffKzSrf84S oyBeByf2tIzjKwoq5DkKfE6R9r+S8lqiG+DtlxhZ7BNjwLPkZhO0I/q7WaZlb+9u Qt1C8smIjdfX7nL8MkjobcQ2OOj6kSMv7E/+gqx+r2nd5ARV3E1Cj9LqNGiWwg4r R9kF1M1aR8Hi2h/j083XSb0JpBVK7w== =fjAp -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 06 10:49:59 2018 Received: (at 32855) by debbugs.gnu.org; 6 Oct 2018 14:49:59 +0000 Received: from localhost ([127.0.0.1]:38743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8nu2-00057T-31 for submit@debbugs.gnu.org; Sat, 06 Oct 2018 10:49:59 -0400 Received: from tobias.gr ([80.241.217.52]:49572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8ntz-00057K-No for 32855@debbugs.gnu.org; Sat, 06 Oct 2018 10:49:56 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id c375d9a3; Sat, 6 Oct 2018 14:49:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=references :from:to:cc:subject:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=u8DX9klhrFQM1QI4ENcAlW NwbI6MA7UqqxOToGchm+c=; b=Ea7G+zcHXY3/YRrshTkjwYrGQ/maFQWjtJ4bQb KAufplV2F4zihf+PGLorR1FH4eKBSuO4PeV97uK2J7ngqPlPi9RZNvDdU1i1u4ym zA17h+BMKjNtgfmRY8sdeEzDzH8Pi+vdFGW2YPCmNaLqiSHTq3F0ujkx6ipl+itD G04opPCz8SDaiabZPYqqFdDwOQ4J8YGIwYjMwcOreFcR3tgZcNGrUhgFsuSwLyOd S6zCHxDaH+i00xMqK+n7pveR7Cd3XjJt9V0etZ0/SvP6RaKUIbyMXkHKWGSYw7RD 8Z9om5fqkR6E1T+wHJAx2y5pBN++XbLzVIMPRVCFltKtCWAg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id bc6ce7b2 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sat, 6 Oct 2018 14:49:51 +0000 (UTC) References: <20180927182323.GA30836@antelope> <20180927192218.GA11125@antelope> <87o9ciha1x.fsf@tobias.gr> <20180929224001.GA10179@antelope> <87h8i7cicn.fsf@tobias.gr> <87va6fi2dx.fsf@fastmail.com> From: Tobias Geerinckx-Rice To: Marius Bakke Subject: Re: bug#32855: sshuttle /usr/bin/env In-reply-to: <87va6fi2dx.fsf@fastmail.com> Date: Sat, 06 Oct 2018 16:49:51 +0200 Message-ID: <875zyfgmeo.fsf@tobias.gr> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32855 Cc: 32855@debbugs.gnu.org, Nam Nguyen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Marius, Marius Bakke wrote: > Note that /bin/sh is present even on vanilla GuixSD. Thanks. I should probably give this vanilla GuixSD of which you speak a try some time :-) Kind regards, T G-R From unknown Fri Aug 15 18:06:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 04 Nov 2018 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator