Skip to main content

Questions tagged [root]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
263 views

How to open serial-port with root privileges

When I try to open /dev/ttyUSB0 with serial-term, following permission error shows: Opening serial port: Permission denied, /dev/ttyUSB0 I know I can add my user to a group that has access to /dev/...
Garid's user avatar
  • 748
0 votes
1 answer
114 views

Trying to edit/save file with root privilege fails with "Copying directly failed, see buffer '*tramp/sudo root @HOST*'

I have done this a ton of times in the past 10 months or so that I have been using Emacs (which I have quickly come to love, by the way) and never had a problem. No clue what I changed or how, but ...
user2800929's user avatar
0 votes
1 answer
427 views

How to avoid using auth-sources when editing with sudo?

When I invoke crux-sudo-edit, Emacs hangs forever with the following message: Decrypting /home/$USER/.authinfo.gpg...0% until I press C-g, then it asks: Passphrase for symmetric encryption for /home/$...
Daanturo's user avatar
  • 180
3 votes
0 answers
256 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, ...
dualism's user avatar
  • 304
2 votes
2 answers
1k 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?
Startec's user avatar
  • 1,374
9 votes
1 answer
2k 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 ;;;;;;;; ...
radious's user avatar
  • 231
5 votes
2 answers
534 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-...
PythonNut's user avatar
  • 10.5k
6 votes
0 answers
628 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 ...
CodyChan's user avatar
  • 2,669