Using a password with ‘sudo’ (was: Quotation Ugliness)

Ben Finney ben+python at
Wed Nov 26 08:02:02 CET 2014

Tim Daneliuk <tundra at> writes:

> Here's a usecase - I want to know whether I need to use a sudo
> password when the user passes a command on the command line of a
> program:


> In the first instance, I need the sudo passoword, in the second I don't.

I don't understand what “need a sudo password” means, or what you would
do differently if you detect one case or the other. It's the ‘sudo’
command itself that determines whether you need a password, so what is
your Python code going to do differently?

 \        “We have to go forth and crush every world view that doesn't |
  `\                believe in tolerance and free speech.” —David Brin |
_o__)                                                                  |
Ben Finney

More information about the Python-list mailing list