1

Switching to superuser while shell script is running

view story
linux-howto

http://unix.stackexchange.com – I have a shell script that contains the following lines: CURRENT_USER=${USER} echo $CURRENT_USER su echo switch to `who am i` Once the 2nd line is executed, the shell prompts 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 issue? (HowTos)