Good point about gksudo. But I'm not sure I understand Roberto's answer:
I know that sudo doesn't time out for a while, and that's OK. I expect to be able to run several apps with sudo and enter the password just once. What concerns me is that this is applied to applications that are _not_ run with sudo. That is, if I run:
Then I wouldn't expect the third-app to get super-user privileges just because it runs a sub-process with sudo. It should only apply to apps where I manually specify sudo on the command line.
Good point about gksudo. But I'm not sure I understand Roberto's answer:
I know that sudo doesn't time out for a while, and that's OK. I expect to be able to run several apps with sudo and enter the password just once. What concerns me is that this is applied to applications that are _not_ run with sudo. That is, if I run:
$ sudo first-app
[enter password]
$ sudo second-app
[no password]
$ third-app
[no password, of course]
Then I wouldn't expect the third-app to get super-user privileges just because it runs a sub-process with sudo. It should only apply to apps where I manually specify sudo on the command line.