From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#1540: emacsclient -t fails under su Date: Thu, 11 Dec 2008 17:18:24 -0800 (PST) Message-ID: <200812120118.mBC1IOvm002208@mothra.ics.uci.edu> References: <200812112119.mBBLJwj7001473@mothra.ics.uci.edu> Reply-To: Dan Nicolaescu , 1540@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229046301 13255 80.91.229.12 (12 Dec 2008 01:45:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Dec 2008 01:45:01 +0000 (UTC) Cc: 1540@emacsbugs.donarmstrong.com To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 12 02:46:04 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LAx6R-0006hw-QY for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Dec 2008 02:46:04 +0100 Original-Received: from localhost ([127.0.0.1]:54661 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LAx5G-0006ck-Gc for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Dec 2008 20:44:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LAx4p-00068T-0G for bug-gnu-emacs@gnu.org; Thu, 11 Dec 2008 20:44:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LAx4n-00066I-HN for bug-gnu-emacs@gnu.org; Thu, 11 Dec 2008 20:44:22 -0500 Original-Received: from [199.232.76.173] (port=58857 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LAx4n-00065b-40 for bug-gnu-emacs@gnu.org; Thu, 11 Dec 2008 20:44:21 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60505) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LAx4m-0001TJ-G2 for bug-gnu-emacs@gnu.org; Thu, 11 Dec 2008 20:44:20 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBC1iICj005804; Thu, 11 Dec 2008 17:44:18 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mBC1P56p000470; Thu, 11 Dec 2008 17:25:05 -0800 X-Loop: don@donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 12 Dec 2008 01:25:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1540 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1540-submit@emacsbugs.donarmstrong.com id=B1540.122904471831427 (code B ref 1540); Fri, 12 Dec 2008 01:25:05 +0000 X-Spam-Bayes: score:0.0000 Tokens: new, 10; hammy, 99; neutral, 46; spammy, 0. spammytokens: hammytokens:0.000-+--emacs, 0.000-+--H*i:message, 0.000-+--H*i:2008, 0.000-+--HX-Debbugs-No-Ack:yes, 0.000-+--H*MI:message Original-Received: (at 1540) by emacsbugs.donarmstrong.com; 12 Dec 2008 01:18:38 +0000 Original-Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBC1IZ47031416 for <1540@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 17:18:36 -0800 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id mBC1IOPZ024970; Thu, 11 Dec 2008 17:18:24 -0800 (PST) Original-Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBC1IOvm002208; Thu, 11 Dec 2008 17:18:24 -0800 (PST) In-Reply-To: (Glenn Morris's message of "Thu, 11 Dec 2008 18:51:52 -0500") Original-Lines: 20 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mBC1IOPZ024970 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 11 Dec 2008 20:44:22 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:23219 Archived-At: Glenn Morris 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