[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: open files as root
From: |
Thierry Volpiatto |
Subject: |
Re: open files as root |
Date: |
Sat, 29 Aug 2009 19:48:11 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) |
Hi Henry,
you can use a function like this:
,----
| (defun find-file-as-root (file)
| (interactive "fFindFileAsRoot: ")
| (find-file (concat "/su::" (expand-file-name file))))
`----
Replace /su: by /sudo: if you are a sudo user (Debian?)
henry atting <nsmp_01@online.de> writes:
> On Sa, Aug 29 2009, David Kastrup wrote:
>
>> henry atting <nsmp_01@online.de> writes:
>>
>>> Is there another way as with tramp to open files as root within emacs?
>>
>> No.
>>
>>> (Since I am sure that tramp and I never will be friends in this life)
>>
>> Partners is all you need.
>
> Okay, tramp won, I switched from zsh (which impressing functionality I
> don't use anyway) back to bash.
>
> (I now the appropriate lines which are to add to .zshrc, but this time
> they don't work – another time they did.)
>
> henry
--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France