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

sudo should ask for password first time in a script #121

Open
retrogradeorbit opened this issue Sep 8, 2020 · 0 comments
Open

sudo should ask for password first time in a script #121

retrogradeorbit opened this issue Sep 8, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@retrogradeorbit
Copy link
Member

If sudo requires a password, and sudo-user is not used, then the first time its encountered in the script, spire should prompt for this password on the console. Thus:

(sudo
      (line-in-file :present
                    {:path "/etc/sudoers"
                     :insert-at :eof
                     :line "username ALL=(ALL) NOPASSWD: ALL"})
      ...
      )```

could be used. And the first run it would ask for the password, but then would setup the user in sudoers, and subsequent runs would not need a password.
@retrogradeorbit retrogradeorbit added the enhancement New feature or request label Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant