Hello, I am running a command as part of my script on a Unix box for which I need to su to a different username.
This su requires a password as well. I could not find any option of passing the password in su. Tried the shell script solution of here docs : su <<TillEnd admin test TillEnd But even this does not work. Could anyone please guide me how to su in a script (shell / perl) ? I cannot have my username added to the /etc/sudoers to execute commands as root... Thanks in advance -aman