The iPhone Wiki is no longer updated. Visit this article on The Apple Wiki for current information. |
Difference between revisions of "Su"
(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...") |
m (→Parents: Updating to latest.) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{lowercase}} |
||
+ | == Introduction == |
||
+ | su is a command used for quickly switching between the [[root]] and [[mobile]] accounts on an iOS device. The [[root]] account gives you access to the entire filesystem and allows you to modify any file you wish. As this could be potentially dangerous, Apple has locked you out of the [[root]] account. To gain access to it, you must go through a process known as [[jailbreaking]]. You can find a list of all arguments and the proper syntax for 'su' at [http://linux.die.net/man/1/su this link], but if you don't want to do that much reading, a basic highlight of the command is shown below. |
||
+ | |||
== Usage == |
== Usage == |
||
− | There is no official usage of "su", but below you can find a list of available arguements below. |
||
<pre> |
<pre> |
||
su {user} {-c "command"} |
su {user} {-c "command"} |
||
</pre> |
</pre> |
||
− | == 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). |
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 == |
== Parents == |
||
+ | {{parent|usr|bin}} |
||
− | [[:/|(Root)]]/[[/bin|bin]] |
||
[[Category:Filesystem]] |
[[Category:Filesystem]] |
Latest revision as of 11:40, 28 August 2015
Introduction
su is a command used for quickly switching between the root and mobile accounts on an iOS device. The root account gives you access to the entire filesystem and allows you to modify any file you wish. As this could be potentially dangerous, Apple has locked you out of the root account. To gain access to it, you must go through a process known as jailbreaking. You can find a list of all arguments and the proper syntax for 'su' at this link, but if you don't want to do that much reading, a basic highlight of the command is shown below.
Usage
su {user} {-c "command"}
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).