Public bug reported: Binary package hint: sudo
Hi, first of all sorry if I'm not in the right place to post. When running personnal scripts, sometimes it is useful to run a sudo command once in a while. The problem is, if you're not in front of the terminal when running, it asks for the sudo password until you come back.... Not convenient if you run a very long script. Running the whole script as sudo is not really wise, don't you think ? I think it could be useful to have a command that asks for the sudo password at the very beginnig and memorize it for later on. Example : get_sudo myscript.sh (<-- asks for the password before running the script, once for all) myscript.sh : #!/bin/sh normal command (<-- is not run as super user, but casual one) another normal command (same) ... restitute_sudo mkdir ...... (<-- no problem to be run since the password sudo has been remembered) ... What do you thinkĀ ? ** Affects: sudo (Ubuntu) Importance: Undecided Status: New -- [wishlist] sudo password ask for later in a script https://bugs.launchpad.net/bugs/400201 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs