Difference between revisions of "Su"

From The iPhone Wiki
Jump to: navigation, search
(Created page with "== Usage == There is no official usage of "su", but below you can find a list of available arguements below. <pre> su {user} {-c "command"} </pre> == Notes == Using the synt...")
(No difference)

Revision as of 01:03, 17 October 2013

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).

Parents

(Root)/bin