* bug#14401: su - nobody -c emacs gives "Could not open file: /dev/tty"
@ 2013-05-14 16:59 jidanni
2019-09-30 15:53 ` Stefan Kangas
2019-10-01 2:01 ` 積丹尼 Dan Jacobson
0 siblings, 2 replies; 3+ messages in thread
From: jidanni @ 2013-05-14 16:59 UTC (permalink / raw)
To: 14401
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#14401: su - nobody -c emacs gives "Could not open file: /dev/tty"
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
2019-10-01 2:01 ` 積丹尼 Dan Jacobson
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Kangas @ 2019-09-30 15:53 UTC (permalink / raw)
To: 積丹尼 Dan Jacobson; +Cc: 14401
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#14401: su - nobody -c emacs gives "Could not open file: /dev/tty"
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
@ 2019-10-01 2:01 ` 積丹尼 Dan Jacobson
1 sibling, 0 replies; 3+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-10-01 2:01 UTC (permalink / raw)
To: Stefan Kangas; +Cc: 14401-done
OK I'll close this as it is not a common use case.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-10-01 2:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2019-10-01 2:01 ` 積丹尼 Dan Jacobson
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.