Questions tagged [su]

GENERAL SU SUPPORT IS OFF-TOPIC. Support questions may be asked on https://superuser.com. su is a utility to run a shell or other command as another user (root by default).

su is a Unix/Linux utility that runs a shell or a specified command as another user. By default, the other user is root, and su, with , is one of the two common ways of obtaining administrator privileges. Calling su usually requires typing the target user's password.

su originally stood for “super user” (it was only for running a root shell), and became later known as “substitute user” (or “switch user” or a number of similar backronyms) when it started accepting the target user name as an argument.

For system administration questions, see the su tag on Super User (for non-professionals), Server Fault (for professionals), or Unix & Linux.

437 questions
-3
votes
2 answers

How to escape the `su -arch`?

I assign an account name arch. useradd -m -G users arch passwd arch Now su into arch with command su -arch. How to su into the account name arch with some kind of escape method?
showkey
  • 449
  • 30
  • 101
  • 235
-5
votes
2 answers

How to run subprograms with root permissions on iOS?

With the Android SDK, I can run a process as a superuser by invoking su and then running my code. How can I do the same on iOS? Here's what I use on Android: // Elevate to root Process localProcess = Runtime.getRuntime().exec( "su"); // Now run…
Tapa Save
  • 4,276
  • 4
  • 30
  • 52
1 2 3
29
30