From: Dan Nicolaescu <dann@ics.uci.edu>
To: Glenn Morris <rgm@gnu.org>
Cc: 1540@emacsbugs.donarmstrong.com
Subject: bug#1540: emacsclient -t fails under su
Date: Thu, 11 Dec 2008 17:18:24 -0800 (PST) [thread overview]
Message-ID: <200812120118.mBC1IOvm002208@mothra.ics.uci.edu> (raw)
In-Reply-To: <iswse6fexz.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 11 Dec 2008 18:51:52 -0500")
Glenn Morris <rgm@gnu.org> writes:
> I know nothing about how this all works, but my naive expectation was
> that since emacs -nw works, emacsclient -t should too.
A little explanation what is going on. Given this example:
> user1> su - user2
> user2> emacs -Q -nw
> user2> emacs -Q -f server-start & # works fine
> user2> emacsclient -c # works fine
> user2> emacsclient -t
> *ERROR*: Could not open file: /dev/pts/12
>
> (and indeed user2 does not have permissions for this file)
emacs tries to open the tty of the emacsclient process, which
ttyname (fileno (stdout)) says it's /dev/pts/12
/dev/pts/12 is owned by user1, and user2 has no access to it
next prev parent reply other threads:[~2008-12-12 1:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-11 20:13 bug#1540: emacsclient -t fails under su Glenn Morris
2008-12-11 21:19 ` Dan Nicolaescu
2008-12-11 23:51 ` Glenn Morris
2008-12-12 1:02 ` Dan Nicolaescu
2008-12-12 1:31 ` Glenn Morris
2008-12-12 1:40 ` Processed: " Emacs bug Tracking System
2008-12-12 15:11 ` Andreas Schwab
2008-12-12 1:18 ` Dan Nicolaescu [this message]
2008-12-12 19:02 ` Stefan Monnier
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=200812120118.mBC1IOvm002208@mothra.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=1540@emacsbugs.donarmstrong.com \
--cc=rgm@gnu.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.