From: Stefan Kangas <stefan@marxist.se>
To: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Cc: 14401@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 [thread overview]
Message-ID: <CADwFkmmnrf7=thiNSjTwR6gOhTPSm=U6fnU2vzMAhM8x4dB7Bg@mail.gmail.com> (raw)
In-Reply-To: <8738tpjy4w.fsf@jidanni.org>
jidanni@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@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
next prev parent reply other threads:[~2019-09-30 15:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-14 16:59 bug#14401: su - nobody -c emacs gives "Could not open file: /dev/tty" jidanni
2019-09-30 15:53 ` Stefan Kangas [this message]
2019-10-01 2:01 ` 積丹尼 Dan Jacobson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADwFkmmnrf7=thiNSjTwR6gOhTPSm=U6fnU2vzMAhM8x4dB7Bg@mail.gmail.com' \
--to=stefan@marxist.se \
--cc=14401@debbugs.gnu.org \
--cc=jidanni@jidanni.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.