The iPhone Wiki is no longer updated. Visit this article on The Apple Wiki for current information. |
Su
Usage
There is no official usage of "su", but below you can find a list of available arguements below.
su {user} {-c "command"}
Notes
Using the syntax above, if I were logged in as root and were to type 'su mobile -c "hi there"', the output would be the user mobile executing the command "echo hi there", which would just appear as the words "hi there" on the terminal screen. If "su" is launched by root, it does not ask for a password, but if it is launched by mobile, the terminal output is "Password:" and you need to put in the root password (by default it is "alpine" without the quotes).