You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are 2 parameters that can be added to the sudoers file:
passwd_timeout controls the timeout for the "Type your password here NOW:" prompt
timestamp_timeout controls how long sudo will keep your cached password (or authorization or something, I hope it doesn't actually cache a plaintext password)
Would one of these resolve the issue?
Unfortunately I see no way to pass these to sudo other than editing the configuration file, but we can use sudo once to customize it at the beginning, if it's quick enough everything should work smoothly.
sudo -i will log you in as another user and wait forever for a command, so it's probably no good. If we really want, we can use the script to re-launch itself with sudo but I don't really like this approach:
if [[ $EUID-ne 0 ]];then
sudo $0# or something, this is actually absurdly complicated in bashexitfi# do the usual stuff here
maybe with
sudo -i
?The text was updated successfully, but these errors were encountered: