Questions tagged [sudo]
The sudo tag has no summary.
31 questions
1 vote
0 answers
110 views
How to use sudo with shell-command-on-region?
Inside Emacs it's possible to run a shell command under sudo by doing the following: (let ((default-directory "/sudo::")) (shell-command "the-command-that-requires-sudo-access")) ...
0 votes
0 answers
119 views
Why is sudo not working in org babel tramp?
I have this code here. I also tried adding sudo touch. The only thing that seems to work is if I run it as a normal bash org code and use the SUDO_ASKPASS variable. #+begin_src bash :results output :...
2 votes
1 answer
484 views
how to execute sudo su --login username command with TRAMP
I have this weird setup that once I log onto our server with the sudo uat command, I will be logged in with my own user dadinn@uat. I have set up .ssh/config so that uat is really an alias for ...
0 votes
1 answer
352 views
How can I change TRAMP sudo password timeout?
I'm asked far too often for my sudo password by TRAMP.
0 votes
1 answer
169 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 ...
0 votes
0 answers
363 views
`sudo !!` in eshell?
I was wondering how you could get the equivalent of sudo !! in eshell. I cant tell you the amount of times I have done this forgetting eshell doesn't have this feature built in. I have looked through ...
1 vote
0 answers
217 views
Differing behaviours with EDITOR=emacsclient between git and sudoedit
In my .profile I've export EDITOR="emacsclient -qa \"emacs --no-window-system --no-desktop\"" Doing sudo -e /somefile doesn't work even when Emacs server is running. I get emacsclient: unrecognized ...
0 votes
2 answers
240 views
Emacs, .historian and root user
I use the following alias: alias e='emacsclient -a '\'''\'' -t alias sudo='sudo ' That way I can execute both, commands and aliases, with sudo, including e, which launchs the emacs server if it is ...