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: Stefan Kangas <stefan <at> marxist.se>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 14401 <at> debbugs.gnu.org
Subject: bug#14401: su - nobody -c emacs gives "Could not open file: /dev/tty"
Date: Mon, 30 Sep 2019 17:53:10 +0200
jidanni <at> jidanni.org writes:

> 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 -.

I can't reproduce the recipe easily since the user nobody has no
password on my machine.

Is this a bug in Emacs though?  To me, it seems more like some quirk
of how su works in this case.  Does the above work with other
programs, for example "top" or something?

Best regards,
Stefan Kangas




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.