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

Use sudo -S argument to pipe in password #79

Merged
merged 4 commits into from
Sep 2, 2024

Conversation

jpm-canonical
Copy link
Contributor

Summary

Related:

Remote devices might ask for a sudo password. To prevent sudo from expecting a password from the keyboard, we use the -S argument to pipe in the password via stdin.

Testing Steps

  • Tested on an Ubuntu Desktop remote device that asks for a sudo password.
  • Tested on an Ubuntu Server remote device that does not ask for a sudo password.

@jpm-canonical jpm-canonical marked this pull request as ready for review August 30, 2024 08:50
Copy link
Member

@farshidtz farshidtz left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks

@jpm-canonical jpm-canonical merged commit 1f18069 into main Sep 2, 2024
6 checks passed
@jpm-canonical jpm-canonical deleted the IENG-1143-sudo-password branch September 2, 2024 07:50
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