That seems to be a rather interesting gksu bug or misbehaviour: "gksu whoami" does cache the password through sudo, but "gksu whoami > /tmp/o" doesn't. So the output redirection breaks this somehow.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/716595 Title: consecutive root_command_output() calls ask for password each time -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs