I logged in as a super user in Unix, I need to write a script to make a change in directory permission in the root user without logging out of the super user. When I execute this script the flow stops abruptly and it is not going forward. Below is the script that I am using.
sudo -u user1 chmod 777 /export/home/user1
cd /u01/app/informatica/infa_etl/Informatica/server/infa_shared/TgtFiles
sudo -u super cp *csv /export/home/user1/RPT_GEN
sudo -u user1 chmod 700 /export/home/user1
Thanks in advance