Questions tagged [root]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
0answers
67 views

How to run process in administrative mode from Emacs?

I've been using powershell.el in MS Windows Emacs, but I sometimes want to be administrative mode so that I can do software installation via chocolatey, etc. Is there any way to call shell command, ...
2
votes
2answers
625 views

How do I open a non-readable file from inside emacs when I opened emacs as a regular user?

The question pretty much says it all. I opened emacs as a regular user and am trying to edit something in the /etc/ folder (I know this is dangerous etc. etc.) How can I do this?
8
votes
1answer
866 views

How to disable auto-save in emacs only for files opened as root

I want to use emacs auto-save feature with tramp, but only for file that I don't open using sudo. My current configuration, based on the tramp documentation, looks like this: ;;;;;;;; BAKUCP ;;;;;;;; ...
5
votes
2answers
351 views

Edit file as root over when already using TRAMP

Right now, I have the following in my init (defun my-edit-file-as-root () "Find file as root" (interactive) (find-alternate-file (concat "/su:root@localhost:" buffer-file-name))) (defun my-...
6
votes
0answers
477 views

Cannot edit a file as root if ~/.authinfo.gpg file exists

I got ~/.authinfo.gpg to store my multiple email accounts for gnus, but if ~/.authinfo.gpg exists, the tramp won't work. It will always say: Decrypting /home/chz/.authinfo.gpg...done Emacs won't ...