Subject: bug#14401: closed (Re: bug#14401: su - nobody -c emacs gives "Could not open file: /dev/tty")

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 01 Oct 2019 02:02:05 +0000

Your bug report

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

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
14401: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14401
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#14401: su - nobody -c emacs gives "Could not open file: /dev/tty"
From: 積丹尼 Dan Jacobson <[email-masked]>
To: Stefan Kangas <[email-masked]>
Cc: [email-masked]
Date: Tue, 01 Oct 2019 10:01:49 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

OK I'll close this as it is not a common use case.

Subject: su - nobody -c emacs gives "Could not open file: /dev/tty"
From: [email-masked]
To: [email-masked]
Date: Wed, 15 May 2013 00:59:27 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

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