all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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:37:39 +1000	[thread overview]
Message-ID: <87zm2anqws.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: 1183644493.115835.274090@m37g2000prh.googlegroups.com

flebber <flebber.crue@gmail.com> 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

      parent reply	other threads:[~2007-07-06  3:37 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
2007-07-06  3:37 ` Tim X [this message]

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=87zm2anqws.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.
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.