Possible Duplicate:
automate sudo su - user command
when the sudo su - user command gets executed inj script ,it asks for a password. i want a solution in which script automaticaaly reads password from somewhere. i dont have permission to edit sudoers file.i have the permission to store password in a file.the script should read password from that file . also expect is not installed and i do not have permission to install it on machine from where the script would be run