Ubuntu Guide posted a tutorial about changing the timeout delay for Sudo command password in Ubuntu
Ubuntu default disable the root user and sudo runs the command needs super privilege. When you first run a sudo command,it asks for the login user password and it won't ask again in 5 minutes,because the terminal remember the password for 5 minutes (the default timeout).Change timeout delay for Sudo command password in Ubuntu