It's about being annoyed when playing the game "enter a command and don't forget to add sudo, or your fingers will be punched."
I am wondering if it is possible to somehow configure my Linux system or shell in such a way that when I forget to type, for example. "sudo apt-get install emacs" instead of just telling me that I did something wrong, gksudo will be launched, which will allow me to confirm my credentials and move on. Just like UAC does on windows.
Googling hasn't helped me yet.
So is this possible? Did I miss something? Or am I asking for a square circle?
Edit 2010 July 25th: Thank you all for your interrest. Unfortunately, the answers of Daenyth and bmargulies and the explanations are what I expected / feared, since it was impossible for me to solve the problem before submitting this question. I hope some good person ever becomes an effective solution to this.
BR, Christian
linux uac sudo
Christian madsen
source share