From unknown Sat Jun 21 03:29:58 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18081: openpty fails on standalone guix Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 22 Jul 2014 16:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18081 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 18081@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.140604814320502 (code B ref -1); Tue, 22 Jul 2014 16:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Jul 2014 16:55:43 +0000 Received: from localhost ([127.0.0.1]:34824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9dLn-0005KW-15 for submit@debbugs.gnu.org; Tue, 22 Jul 2014 12:55:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51114) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9dLg-0005KG-RP for submit@debbugs.gnu.org; Tue, 22 Jul 2014 12:55:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9dLR-0003PZ-Hr for submit@debbugs.gnu.org; Tue, 22 Jul 2014 12:55:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9dLR-0003PV-FF for submit@debbugs.gnu.org; Tue, 22 Jul 2014 12:55:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9dLH-0001IG-Nq for bug-guix@gnu.org; Tue, 22 Jul 2014 12:55:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9dL9-00030x-AJ for bug-guix@gnu.org; Tue, 22 Jul 2014 12:55:07 -0400 Received: from world.peace.net ([96.39.62.75]:52691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9dL9-0002zP-6q for bug-guix@gnu.org; Tue, 22 Jul 2014 12:54:59 -0400 Received: from c-24-62-95-23.hsd1.ma.comcast.net ([24.62.95.23] helo=yeeloong.lan) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1X9dKt-00048S-0j; Tue, 22 Jul 2014 12:54:43 -0400 From: Mark H Weaver Date: Tue, 22 Jul 2014 12:54:27 -0400 Message-ID: <87tx695o70.fsf@yeeloong.lan> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) openpty fails for unprivileged users on standalone guix. For example, running 'script' or 'screen' fails, and running M-x shell within emacs results in a bash without job control, because emacs uses pipes to communicate with the subprocess instead of pseudo-ttys, apparently because it was unable to use openpty. I've found that I can fix the problem by unmounting /dev/pts and then remounting with the same options that LFS uses for its /etc/fstab: "gid=1004,mode=620". That gid corresponds to the 'tty' group. Mark From unknown Sat Jun 21 03:29:58 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Mark H Weaver Subject: bug#18081: closed (Re: bug#18081: openpty fails on standalone guix) Message-ID: References: <878unlq6rg.fsf@gnu.org> <87tx695o70.fsf@yeeloong.lan> X-Gnu-PR-Message: they-closed 18081 X-Gnu-PR-Package: guix Reply-To: 18081@debbugs.gnu.org Date: Wed, 23 Jul 2014 00:06:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1406073963-23451-1" This is a multi-part message in MIME format... ------------=_1406073963-23451-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #18081: openpty fails on standalone guix which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 18081@debbugs.gnu.org. --=20 18081: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D18081 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1406073963-23451-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 18081-done) by debbugs.gnu.org; 23 Jul 2014 00:05:30 +0000 Received: from localhost ([127.0.0.1]:35141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9k3l-000654-Ts for submit@debbugs.gnu.org; Tue, 22 Jul 2014 20:05:30 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:40877) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9k3i-00064n-CS for 18081-done@debbugs.gnu.org; Tue, 22 Jul 2014 20:05:28 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 9881C323D; Wed, 23 Jul 2014 02:05:24 +0200 (CEST) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zU40T33K27lq; Wed, 23 Jul 2014 02:05:24 +0200 (CEST) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 2E9B4270; Wed, 23 Jul 2014 02:05:24 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Mark H Weaver Subject: Re: bug#18081: openpty fails on standalone guix References: <87tx695o70.fsf@yeeloong.lan> Date: Wed, 23 Jul 2014 02:05:23 +0200 In-Reply-To: <87tx695o70.fsf@yeeloong.lan> (Mark H. Weaver's message of "Tue, 22 Jul 2014 12:54:27 -0400") Message-ID: <878unlq6rg.fsf@gnu.org> User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 18081-done Cc: 18081-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (+) This should be fixed with 7f239fd. Let me know if it=E2=80=99s not! Ludo=E2=80=99. ------------=_1406073963-23451-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 22 Jul 2014 16:55:43 +0000 Received: from localhost ([127.0.0.1]:34824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9dLn-0005KW-15 for submit@debbugs.gnu.org; Tue, 22 Jul 2014 12:55:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51114) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9dLg-0005KG-RP for submit@debbugs.gnu.org; Tue, 22 Jul 2014 12:55:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9dLR-0003PZ-Hr for submit@debbugs.gnu.org; Tue, 22 Jul 2014 12:55:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9dLR-0003PV-FF for submit@debbugs.gnu.org; Tue, 22 Jul 2014 12:55:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9dLH-0001IG-Nq for bug-guix@gnu.org; Tue, 22 Jul 2014 12:55:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9dL9-00030x-AJ for bug-guix@gnu.org; Tue, 22 Jul 2014 12:55:07 -0400 Received: from world.peace.net ([96.39.62.75]:52691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9dL9-0002zP-6q for bug-guix@gnu.org; Tue, 22 Jul 2014 12:54:59 -0400 Received: from c-24-62-95-23.hsd1.ma.comcast.net ([24.62.95.23] helo=yeeloong.lan) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1X9dKt-00048S-0j; Tue, 22 Jul 2014 12:54:43 -0400 From: Mark H Weaver To: bug-guix@gnu.org Subject: openpty fails on standalone guix Date: Tue, 22 Jul 2014 12:54:27 -0400 Message-ID: <87tx695o70.fsf@yeeloong.lan> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) openpty fails for unprivileged users on standalone guix. For example, running 'script' or 'screen' fails, and running M-x shell within emacs results in a bash without job control, because emacs uses pipes to communicate with the subprocess instead of pseudo-ttys, apparently because it was unable to use openpty. I've found that I can fix the problem by unmounting /dev/pts and then remounting with the same options that LFS uses for its /etc/fstab: "gid=1004,mode=620". That gid corresponds to the 'tty' group. Mark ------------=_1406073963-23451-1--