I have thea shell script that contains the following lines.:
CURRENT_USER=${USER}
echo $CURRENT_USER
su
echo switch to `who am i`
onceOnce the 2nd line is executed, the shell promptprompts me to enter the root password,. After I provide the correct password and login as admin the last line is not getting executed.
What could be the reason for this issu.issue?