[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sudo in emacs
From: |
Harold Pimentel |
Subject: |
Re: sudo in emacs |
Date: |
Thu, 5 Jan 2012 22:46:33 -0800 |
Does this help?
http://emacs-fu.blogspot.com/2011/12/system-administration-with-emacs.html
(also see the link in the text 'editing files owned by root with tramp')
Harold
On Thu, Jan 5, 2012 at 4:47 PM, Rajanikanth Jammalamadaka
<rajanikanth@gmail.com> wrote:
>
> Hi
>
> My work environment requires that I sudo to an administrative userid using:
>
> sudo -u userid sudo-sh
>
> I normally run emacs using my login userid which is different from the
> administrative userid.
>
> Is there a way I can do this using tramp?
>
> The problem of doing this from shell/eshell is that I am able to login using
> the above sudo command but when I open a file using C-x C-f, the files
> are opening with my userid rather than the administrative userid.
>
> Is there a workaround for this?
>
> Thanks,
> Raj
>
>