unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: Root Session - from Shell command
Date: Fri, 06 Jul 2007 13:42:50 +1000	[thread overview]
Message-ID: <87vecynqo5.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: mailman.3108.1183665858.32220.help-gnu-emacs@gnu.org

david@adboyd.com (J. David Boyd) writes:

> Peter Dyballa <Peter_Dyballa@Web.DE> writes:
>
>> Am 05.07.2007 um 16:08 schrieb flebber:
>>
>>> So maybe I need to edit my bash profile to allow emacs access to the
>>> shell ???
>>
>> No, you can't login in *shell* buffer, and neither in *terminal*
>> buffer. The proper way from inside GNU Emacs would be to use tramp:
>>
>> 	C-x C-f /sudo::/boot/grub/grub.conf RET
>>
>> --
>> Greetings
>>
>>   Pete
>>
>
>
> But you should be able to 'su'.  I do that all the time in Mandriva.
>
> Dave
>
>
>

Depending on your X setup, you can have issues if you open a term, su to root
and then try to run emacs as emacs will try to run the X version. This can fail
if you don't have the appropriate xauth cookies (which control access to the X
display). 

The simplest way to get around this is to run emacs with the -nw switch so that
it will run within the term rather than trying to run as an X client. 

Of course, far simpler is just to use tramp.

Some setups hide this stuff and manage the .Xauthority cookies in a way that
makes all this 'invisible' to the end user. Some people even suggest using the
xhost command to grant access to your X display, but this is insecure,
especially if running on a multi-user system.

Tim
-- 
tcross (at) rapttech dot com dot au

  parent reply	other threads:[~2007-07-06  3:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-05 14:08 Root Session - from Shell command flebber
2007-07-05 14:59 ` Peter Dyballa
2007-07-05 20:03   ` J. David Boyd
     [not found]   ` <mailman.3108.1183665858.32220.help-gnu-emacs@gnu.org>
2007-07-06  3:42     ` Tim X [this message]
2007-07-06  3:37 ` Tim X

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vecynqo5.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).