I have sample.sh script in /u01/dump location. I'm running it from root. My requirement is while running the sample.sh script it has to be login as oracle1 user using SU (super user) and display all files in /u02/dba/ directory. 
Login to super user for running script
permissions;scripting;users