View Single Post
Posts: 62 | Thanked: 35 times | Joined on Mar 2008 @ Fort Gratiot, Michigan
#74
Originally Posted by CodeShogun View Post
In the nitdroid_complete.sh:
"echo NOTE: This program should NOT be run as root.
echo It has specific parts that need to run as root."
What does this mean? confusing huh? What I found out is that... I'm logged in as my own username, but the shell script uses sudo (so the user will be root after the sudo command). There's this $USER variable that refers to the current user. So essentially I'm running part of the script on my username/Desktop while other stuff is running on root/Desktop, one way or another. An easy fix is to replace $USER with your current username in the .sh file. Save and run as: sudo ./nitdroid_complete.sh so everything will be in your own home / Desktop folders.
What are you talking about?

That part of the script just lets you know NOT to run it as "sudo ./nitdroid_complete.sh". The commands that do run as root need to do so and they don't actually run on "Root/Desktop". The sudo commands actually are for things like mounting, unmounting, and partitioning. Those REQUIRE root privileges.

$USER simply makes it so that you DON'T have to modify the script.

tl;dr: Ignore him. The script is doing what it is supposed to.