Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add basic sudo support - #50

Merged
wagoodman merged 2 commits into
masterfrom
with-sudo-support
Feb 18, 2018
Merged

Add basic sudo support#50
wagoodman merged 2 commits into
masterfrom
with-sudo-support

Conversation

@wagoodman

Copy link
Copy Markdown
Owner

For #37 , this captures a user's password and attempts to run flagged commands with sudo (and automatically provide the password). This will not work for tailored sudoers files for particular commands since this is testing against /bin/true for the need to ask for credentials... so it is possible for bashful to not ask for a sudo password when one will be needed during execution (leaving bashful running forever as a subprocess is waiting for user input). Even with this pitfall, this is probably 'good enough' for now.

Comment thread main.go Outdated

}

func StoreSudoPasswd() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported function StoreSudoPasswd should have comment or be unexported

Comment thread main.go Outdated

}

func StoreSudoPasswd() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported function StoreSudoPasswd should have comment or be unexported

@wagoodman
wagoodman merged commit a17fbcd into master Feb 18, 2018
@wagoodman
wagoodman deleted the with-sudo-support branch February 18, 2018 18:43
@wagoodman
wagoodman restored the with-sudo-support branch February 24, 2018 16:26
@wagoodman
wagoodman deleted the with-sudo-support branch March 1, 2018 00:44
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

Successfully merging this pull request may close these issues.

2 participants