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


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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




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.