PDA

View Full Version : [ubuntu] something about sudo...?



lunaluna
May 23rd, 2008, 12:40 PM
when i start a "sudo" application through the graphical environment,i realize that for a while i can still do that with some other apps as weel..
how long does this last?

TeoBigusGeekus
May 23rd, 2008, 12:41 PM
About 15min I think.

BlackDragonBE
May 23rd, 2008, 12:46 PM
Or until you close the terminal session

lunaluna
May 23rd, 2008, 12:50 PM
Or until you close the terminal session

i said graphical environment...

lunaluna
May 23rd, 2008, 12:51 PM
does this means also that other apps which don't need to be ran through sudo will with these priviledges?

Bodsda
May 23rd, 2008, 12:54 PM
no, if it does not need root privileges then it will not be given them, if you wish to reset the timer use


sudo -k

all on its own and it will ask for a password again (usefull for writing nautilus bash scripts)

sayakb
May 23rd, 2008, 01:13 PM
For GUI apps, use gksudo.
If you once use sudo/gksudo with any GUI app, it would be recognized and you won't be furthur asked for password for about 15 minutes. But ofcourse, for the CLI, you might be asked for your password again.