unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Xiao-Yong Jin <xj2106@columbia.edu>
Cc: EMACS List <help-gnu-emacs@gnu.org>
Subject: Re: Using Emacs as root ?
Date: Sat, 09 Sep 2006 18:50:43 -0400	[thread overview]
Message-ID: <86mz98y7r0.fsf@presario.homeunix.org> (raw)
In-Reply-To: <1157841510.2423.32.camel@CASE> (William Case's message of "Sat, 09 Sep 2006 18:38:29 -0400")

William Case <billlinux@rogers.com> writes:

> Hi;
>
> Kind of an Emacs beginner's question.
>
> I do only a little programming -- occasionally writing bash scripts;
> that kind of thing.  I mainly use emacs from my desktop launcher to edit
> text files like my .bashrc etc.
>
> The other day I was reading up on man smb.conf in my gterminal and
> wanted to make some minor changes to smb.conf.  I needed to open a new
> tab in the gterminal; su; then run emacs /etc/samba/smb.conf.  That's OK
> if that is what emacs is designed to do.  But is there a way to launch
> emacs and use some command in the emacs input line that will directly
> open a root protected file while I am user, perhaps combined with C-x
> C-f?  Is there some key combination I can set up?

Try 

C-x C-f /sudo:root@localhost:/

Or use su instead of sudo if you don't use sudo.  You can get more
information in the info pages of Tramp in Emacs.

Xiao-Yong

-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---

  reply	other threads:[~2006-09-09 22:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-09 22:38 Using Emacs as root ? William Case
2006-09-09 22:50 ` Xiao-Yong Jin [this message]
     [not found] <mailman.6705.1157841502.9609.help-gnu-emacs@gnu.org>
2006-09-09 22:59 ` Thorsten Bonow

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=86mz98y7r0.fsf@presario.homeunix.org \
    --to=xj2106@columbia.edu \
    --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).