Is it possible that the same opened terminal (default in ubuntu) will ask for the sudo password from time to time after being provided a password at some point?. E.g.:
$ sudo service my_service_name restart
[sudo] password for my_username:
$ sudo service my_service_name restart
$ sudo service my_service_name restart
[sudo] password for my_username: <-- again asking for password