I have a bash script that installs a lot of software. The whole process takes around 1h therefore I would like to increase the sudo timeout variable. I see it is possible as described here: Increase duration of Sudo.
However, I cannot find a description for the command line anywhere...
In my case I would like to make this change from within the script. I could put something like: sudo echo 'Defaults timestamp_timeout=300' >> /etc/sudoers at the first line within the bash script. This, however, is not allowed.