0
votes
3answers
1k views

Script to use sudo in a terminal, gksudo otherwise?

I'd like to write a script that does an administration task, and I would like to be able to run it either from a terminal or not. If it runs in a terminal, even a graphical one, I'd like it to ask for ...