gksudo disable elevation persistence
Fabio A. Miranda
fabio.a.miranda at gmail.com
Sat Jan 16 20:08:15 UTC 2010
On Sat, 2010-01-16 at 14:48 +0100, Nils Kassube wrote:
> 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.
>
Yes, my mistake, for the records, sudo -k did the trick.
1TB of thanks
fabio
More information about the ubuntu-users
mailing list