[Tkinter-discuss] use entry field to enter password (Re: Tkinter-discuss Digest, Vol 47, Issue 5)
Tim Jones
timj at tolisgroup.com
Sun Jan 6 16:30:21 CET 2008
On Jan 6, 2008, at 6:54 AM, Fredrik Lundh wrote:
> Rajeev Nair wrote:
>
>> can anyone tell me how to use the entry field to enter system
>> password?
>> So instead of system asking me in terminal i want to enter the
>> password through the entry field.
>
> not sure what you mean by "system" here,
This sounds as if Rajeev is trying to place a wrapper around 'sudo'.
If so, you'll need to get the username and password and the pass them
through to the sudo'd command like this (assumes the user is in the /
etc/sudoers file and that thePassword contains their password):
echo thePassword | sudo -S theCommand
If I've mis-guessed here, please explain what you're trying to
achieve further.
Tim
More information about the Tkinter-discuss
mailing list