Open Bouni opened 3 months ago
A blind think tells me that this is not something easy to implement, some questions in my mind:
I don't know how it is determined at the moment that a password is needed, especially if I have set pre_sudo = true
.
With that option, do you ask for the sudo password anyway even if it not needed?
Is a child process started for every host to update? Can these processes only be handled after each other?
If not can you first handle the pre_sudo for every child process before you actaull run the updates on them?
I don't know how it is determined at the moment that a password is needed, especially if I have set pre_sudo = true.
I think a command after sudo
does not require a password input, it requires privilege, sudo
requires the password to enable the privilege. pre_sudo
works here because sudo caches this privilege so that another password is not needed if the cached privilege is not expired.
With that option, do you ask for the sudo password anyway even if it not needed?
It is provided by sudo
, not Topgrade, and sudo
won't store your password, see this for more info: https://askubuntu.com/a/190320/1417245
Is a child process started for every host to update? Can these processes only be handled after each other? If not can you first handle the pre_sudo for every child process before you actaull run the updates on them?
Looks like you are talking about remote execution (via ssh), if so, pre_sudo
only works on the current host (since it requires your current user's login password), it is not related to remote execution.
I want to suggest some general feature
Topgrade should ask for all passwords before the actual updates ar run. This would allow for kind of an unattended update experience. Otherwise I have to sit and wait for the next remote host password getting asked ...