AIX How to run a Shell Script by changing the User

view full story

http://www.unix.com – Hi All, Currently our application is running on the server having AIX 5.3 OS. What we intend to do is to run a shell script owned by another user and needs to be run as that particular user. I was trying to create a shell script using the su command before running the actual script (which will be executed from the new script). The su command always prompt for a password. Is there any way we can put that in the shell script so that there is no user prompt. Also please guide if there is any better methodologies to achieve this. Thanks Abhik (HowTos)