I got frustrated, after searching in all available forums for this answer..
I want to use sudo su - username inside a python script and also I need to assign password as well to it in script itself.
sudo su - username
Please let me know if this is possible or not.
Thanks