help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Emacs as root ?


From: Xiao-Yong Jin
Subject: Re: Using Emacs as root ?
Date: Sat, 09 Sep 2006 18:50:43 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]