Hi,
I need to switch from local user to root user in a shell script.
I need to make it automated so that it doesn't prompt for the root password.
I heard the su
command will do that work but it prompt for the password.
and also can someone tell me whether su
command spawns a new shell or runs in the same shell as parent script?