Re: Why does emacs lack non-tramp tools to find files as sudo?

<[email protected]>
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
On Thu, Apr 09, 2026 at 07:42:26AM +0530, Madhu via Users list for the GNU Emacs text editor wrote:
> * Jean Louis <[email protected]> :
> Wrote on Wed, 08 Apr 2026 23:54:56 +0300:
> 
> > On 2026-04-08 10:26, BP25 wrote:
> >> Emacs is the most complete and modern editor out there. How can it
> >> lack "innate" (non tramp) facilities to edit files as superuser?
> >
> > You're correct. Emacs has no built-in, non-Tramp way to edit a file as
> > superuser with a simple command like M-x sudo-find-file or C-c C-s
> > /etc/hosts.
> 
> There is this:
>  tramp-dired-find-file-with-sudo

Hm. I always do:

  C-x C-f /sudo::/my/path/to/file

(or C-x C-v, if I already have the file in buffer under another user).

Cheers
-- 
t
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCadc82QAKCRAFyCz1etHa
RsrMAJ4ksHsBy2tUKk64Z9s6cjQXd57a7QCfXelz7PFxwOfFgnzLaEXClIm5C98=
=7vij
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.