Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for sudo #29

Open
rejeep opened this issue Jan 9, 2014 · 6 comments
Open

Add support for sudo #29

rejeep opened this issue Jan 9, 2014 · 6 comments

Comments

@rejeep
Copy link
Owner

rejeep commented Jan 9, 2014

API:

(prodigy-define-service
  :sudo t
  :sudo-user "foo"
  ;; ...
 )
@rhuelga
Copy link

rhuelga commented Sep 4, 2014

sudo support would be great

@nlamirault
Copy link

Any news on this feature ? :)

@rejeep
Copy link
Owner Author

rejeep commented Nov 6, 2014

Nope. It's not that hard to implement, just haven't had any time to do so. Anyone is welcome to take a stab at it. Otherwise you'll have to wait I'm afraid...

@asok
Copy link

asok commented Jan 30, 2015

Hi @rejeep do you think that approach presented in this answer would be the way to go about it?

@rhuelga
Copy link

rhuelga commented Jan 30, 2015

To launch sudo shell command I use this

(defun sudo-shell-command (command)
  (interactive "MShell command (root): ")
  (with-temp-buffer
    (cd "/sudo::/")
    (async-shell-command command)))

I found it in this thread
https://groups.google.com/forum/#!topic/gnu.emacs.help/fXxnXc3v-pM
and works perfect for me.

@rejeep
Copy link
Owner Author

rejeep commented Jan 30, 2015

@asok I guess you can do it in both ways. I tried to implement sudo once and I got it working and that was using the answer you posted. I didn't save that branch unfortunately, but I remember that it was quite easy to get it working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants