I have a problem. I am writing a piece of software, which is required to perform an operation which requires the user to be in sudo mode. running \'sudo python filename.py\'
Are you talking about having the user input password half way through your execution? raw_input() can take a user input from console, but it will not mask the password.