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

Work around sudo timeouts for long-running commands during bootstrap #249

Closed
padthaitofuhot opened this issue May 26, 2017 · 1 comment
Closed
Assignees
Labels

Comments

@padthaitofuhot
Copy link
Contributor

Some commands run for a long time. When sudo is used to execute these long-running commands and successive commands, then it is possible for the sudo auth token to expire and re-prompt for the account password. If the user does not notice this before the authentication attempt times out, the bootstrap script may continue on without executing an important step. Problems caused by this can be resolved by re-running the bootstrap script. However, to smooth things out and prevent what to the user may look like "mystery errors", sudo token reauthorizations should be placed into a retry loop.

@padthaitofuhot padthaitofuhot added this to the installer 2.0.3 milestone May 26, 2017
@padthaitofuhot padthaitofuhot self-assigned this May 26, 2017
@padthaitofuhot padthaitofuhot added this to Milestone 2.0.3 To-Do in Installer 2.x May 26, 2017
@adrianmo
Copy link
Contributor

@padthaitofuhot what if we force users to run the bootstrap script as root?

Something like this at the beginning of the script:

if [ $EUID != 0 ]; then
    echo "Not running as root"
    exit
fi
...

@padthaitofuhot padthaitofuhot moved this from Milestone 2.0.3 To-Do to In-Progress in Installer 2.x Jun 3, 2017
@padthaitofuhot padthaitofuhot moved this from In-Progress to Needs Review in Installer 2.x Jun 3, 2017
@padthaitofuhot padthaitofuhot moved this from Needs Review to Done in Installer 2.x Jun 5, 2017
@padthaitofuhot padthaitofuhot removed this from Done in Installer 2.x Jun 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants