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

Allow scripts to be run as sudo #343

Closed
andysteady opened this issue Apr 2, 2013 · 10 comments
Closed

Allow scripts to be run as sudo #343

andysteady opened this issue Apr 2, 2013 · 10 comments
Assignees
Milestone

Comments

@andysteady
Copy link

This is a feature request to allow scripts to be executed as sudo making use of the existing secondary sudo password authentication facility.

See: https://mail.google.com/mail/u/0/?shva=1#inbox/13db21c4d38d655a which includes text from Greg:

"We could add an "invocation" parameter for Script steps, which can let you define how the script would be invoked on the remote node. At that point, the sudo password feature could be enabled for scripts by setting it to the sudo invocation you want, and configuring your node properly for sudo authentication.

This could be added for script files/URLs as well."


Added to Trello board: vote on this issue here: https://trello.com/c/vnhUHdYh

@zendril
Copy link

zendril commented Apr 4, 2013

+1 for this. I would like to see it work for scripts, specifically scripts pulled from URLs.

@abohne
Copy link

abohne commented Jun 13, 2013

+1

@gschueler
Copy link
Member

from issue #121 it would be nice to have support for this in the dispatch tool as well

@gschueler
Copy link
Member

I'm working on the GUI for this feature. Here is a screenshot showing the "script interpreter" field for the Script step type. The "Quote arguments to interpreter" checkbox, allows the script filepath and arguments to be quoted as a single argument for the interpreter if necessary.

@cimi
Copy link

cimi commented Jun 25, 2013

+1, this would be really useful.

Here is a hack that may or may not apply to your use-case until the feature is implemented. It helped me not having to change my scripts too much.

gschueler added a commit that referenced this issue Jul 3, 2013
@ahonor
Copy link
Contributor

ahonor commented Jul 25, 2013

Is sudo support available for inline scripts?

@gschueler
Copy link
Member

yes

@zendril
Copy link

zendril commented Jul 26, 2013

Remind me to buy you guys a beer if we ever meet.. If only for this one
feature. Thx for the hard work.

-k
On Jul 25, 2013 8:33 PM, "Greg Schueler" [email protected] wrote:

yes


Reply to this email directly or view it on GitHubhttps://github.com//issues/343#issuecomment-21594539
.

@gschueler
Copy link
Member

👍 🍻 :)

@andysteady
Copy link
Author

Count me in for a round too.
This and the fix for #347 and 352 make me very happy
Plan to adopt latest rundeck release straight after our upcoming release.

p.s. Zynstra is out of stealth mode, search for us on google :-)


From: Greg Schueler [email protected]
Sent: 26 July 2013 01:38
To: dtolabs/rundeck
Cc: Andy Steady
Subject: Re: [rundeck] Allow scripts to be run as sudo (#343)

[:thumbsup:][:beers:] :)

Reply to this email directly or view it on GitHubhttps://github.com//issues/343#issuecomment-21594670.

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

No branches or pull requests

6 participants