how to root your Android or at least understand how it works
root permissions means that you have full permissions to all the items of the kernel. I do not see how you can use an app that requires root permissions to work when the user shell you are operating does not have it.

As far as the in's and out's of manipulating a shell for root permissions I have no idea.