I cannot figure out what\'s wrong with this. When I run it in terminal and enter password, nothing happens, but if I run every command separately in terminal, it works. Than
sudo su is not a command run within a shell -- it starts a new shell.
sudo su
That new shell is no longer running your script, and the old shell that is running the script waits for the new one to exit before it continues.