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

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Tue, 14 May 2013 17:31:06 UTC

Severity: minor

Tags: moreinfo

Done: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#14401: closed (su - nobody -c emacs gives "Could not open
 file: /dev/tty")
Date: Tue, 01 Oct 2019 02:02:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 01 Oct 2019 10:01:49 +0800
with message-id <875zl9fcky.5.fsf <at> jidanni.org>
and subject line Re: bug#14401: su - nobody -c emacs gives "Could not open file: /dev/tty"
has caused the debbugs.gnu.org bug report #14401,
regarding su - nobody -c emacs gives "Could not open file: /dev/tty"
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
14401: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14401
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: su - nobody -c emacs gives "Could not open file: /dev/tty"
Date: Wed, 15 May 2013 00:59:27 +0800
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 <at> 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


[Message part 3 (message/rfc822, inline)]
From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 14401-done <at> debbugs.gnu.org
Subject: Re: bug#14401: su - nobody -c emacs gives "Could not open file:
 /dev/tty"
Date: Tue, 01 Oct 2019 10:01:49 +0800
OK I'll close this as it is not a common use case.


This bug report was last modified 5 years and 240 days ago.

Previous Next


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