GNU bug report logs - #14401
su - nobody -c emacs gives "Could not open file: /dev/tty"

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: jidanni@HIDDEN; dated Tue, 14 May 2013 17:31:06 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 May 2013 17:29:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 14 13:29:40 2013
Received: from localhost ([127.0.0.1]:40315 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UcJ2i-0004IC-Gi
	for submit <at> debbugs.gnu.org; Tue, 14 May 2013 13:29:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47776)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <jidanni@HIDDEN>) id 1UcJ2f-0004Hy-Bi
	for submit <at> debbugs.gnu.org; Tue, 14 May 2013 13:29:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jidanni@HIDDEN>) id 1UcJ25-0002DA-Mo
	for submit <at> debbugs.gnu.org; Tue, 14 May 2013 13:29:03 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE,
	T_DKIM_INVALID,USER_IN_WHITELIST autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:34759)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jidanni@HIDDEN>) id 1UcJ25-0002D1-IS
	for submit <at> debbugs.gnu.org; Tue, 14 May 2013 13:29:01 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59101)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jidanni@HIDDEN>) id 1UcJ23-0005Po-Mi
	for bug-gnu-emacs@HIDDEN; Tue, 14 May 2013 13:29:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jidanni@HIDDEN>) id 1UcJ1x-0002A5-LC
	for bug-gnu-emacs@HIDDEN; Tue, 14 May 2013 13:28:59 -0400
Received: from caiajhbdcahe.dreamhost.com ([208.97.132.74]:58051
	helo=homiemail-a60.g.dreamhost.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jidanni@HIDDEN>) id 1UcJ1x-00028e-EC
	for bug-gnu-emacs@HIDDEN; Tue, 14 May 2013 13:28:53 -0400
Received: from homiemail-a60.g.dreamhost.com (localhost [127.0.0.1])
	by homiemail-a60.g.dreamhost.com (Postfix) with ESMTP id 948253BC07B
	for <bug-gnu-emacs@HIDDEN>; Tue, 14 May 2013 10:28:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to
	:subject:date:message-id:mime-version:content-type; s=
	jidanni.org; bh=Udr7wzV2NGlkq8uPCzfWyz2UhVw=; b=Tg8Y+vAXhLMKraXS
	w6AMY3i8Lljccovzf+/VbYEQ2AHwcTiYznzuzXN12+FmxXGWHcZKswM/7q3/UBTD
	YUuw3YVguSOAtSc8IMdKY78EpACuG/5N0WPWwGSvZ00/+7vAyONqwr9wRCizS7MO
	RH3BQhkXyNkLWYbb6lX1aT8xRDE=
Received: from jidanni.org (114-41-24-184.dynamic.hinet.net [114.41.24.184])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: jidanni@HIDDEN)
	by homiemail-a60.g.dreamhost.com (Postfix) with ESMTPSA id 567F73BC078
	for <bug-gnu-emacs@HIDDEN>; Tue, 14 May 2013 10:28:46 -0700 (PDT)
From: jidanni@HIDDEN
To: bug-gnu-emacs@HIDDEN
Subject: su - nobody -c emacs gives "Could not open file: /dev/tty"
Date: Wed, 15 May 2013 00:59:27 +0800
Message-ID: <8738tpjy4w.fsf@HIDDEN>
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: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

Odd,

# (unset DISPLAY; su - nobody -c emacs)
No directory, logging in with HOME=/
emacs: Could not open file: /dev/tty

doesn't work anymore. One needs two steps,

# (unset DISPLAY; su - nobody)
No directory, logging in with HOME=/
nobody@jidanni2:/$ emacs

Also one can test with su nobody with no -.

$ apt-cache policy emacs-snapshot
emacs-snapshot:
  Installed: 2:20130510-1
  Candidate: 2:20130510-1
  Version table:
 *** 2:20130510-1 0
        500 http://emacs.naquadah.org/ unstable/ Packages
        100 /var/lib/dpkg/status




Acknowledgement sent to jidanni@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#14401; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.