I have some question. I'm trying to create some bash script to automatically some task. I need to do the first step of the task as normal user, and su - to be root to finish the task.
I've been wondering if there is a way to do that? Until now i'm only been able to start the bash as normal user, complete the first step, ask for su - password, but after it connect as root, the script stop.
Is it possible to proceed with the bash after been logged as root?
Thank you in advance.
ps : If I'm not precise, or if you need some information, feel free to ask, I'll do my possible to correct those mistake.