From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Root Session - from Shell command Date: Fri, 06 Jul 2007 13:37:39 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87zm2anqws.fsf@lion.rapttech.com.au> References: <1183644493.115835.274090@m37g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1183693234 2699 80.91.229.12 (6 Jul 2007 03:40:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Jul 2007 03:40:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 06 05:40:33 2007 connect(): Connection refused Return-path: Envelope-to: geh-help-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 1I6egK-0003Tz-Qw for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jul 2007 05:40:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I6egK-0003ra-DO for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jul 2007 23:40:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!sn-xt-sjc-02!sn-xt-sjc-09!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:nZiiqryvQlvhvhnvxdetBFmv0z0= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 30 Original-Xref: shelby.stanford.edu gnu.emacs.help:149907 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45496 Archived-At: flebber writes: > I want to, or am trying to edit my grub menu in emacs so am trying to > login as root from the shell command within emacs. Is this possible ? > > I keep receiving the message - > > standard in must be a tty. > > I am launching emacs largely from the Kmenu. > > Workaround : > I can have emacs as a root session if I start konsole and su to root > from there and then launch emacs. > So maybe I need to edit my bash profile to allow emacs access to the > shell ??? > The easiest way to edit files owned by another user, such as root, from within your normal emacs session is to use tramp (which is now bundled with emacs 22). You then just do a normal 'find-file' and use the following syntax - /root@localhost:/path/to/file you will be prompted for the password. Tim -- tcross (at) rapttech dot com dot au