The approach to solve your problem is to put your user in sudoers file.
Open terminal window and type:
In the bottom of the file, type the follow:
username ALL=(ALL) NOPASSWD: ALL
This only applies, to sudo command in terminal window. For example, when you try to install a package in software center, you will be prompted to insert your password
许可协议: 知识共享署名-非商业性使用 4.0 国际许可协议