gksudo disable elevation persistence
Nils Kassube
kassube at gmx.net
Sat Jan 16 13:48:22 UTC 2010
Fabio A. Miranda wrote:
> Please, take the above code, and running it twice. The first time you
> will get prom
I'm no Java coder, so can you tell me how to run the code?
> comando = "/usr/bin/gksudo touch /bin/foo";
According to what Karl and I suggestested that line probably would be
something like this:
comando = "/usr/bin/sudo -k;/usr/bin/gksudo touch /bin/foo";
> You will see that a second attempt to execute it, with a different
> PID, will request no password.
Because you didn't invalidate the sudo timestamp before your gksudo
command.
Nils
More information about the ubuntu-users
mailing list