proot

Date: 2025 10-October 18

What is proot?

proot is a user-space implementation of chroot, designed primarily to enable the execution of programs with an alternative root directory without needing special privileges (like root access or CAP_SYS_CHROOT capability).


What PRoot Means

PRoot stands for Pseud-root (or Process root).

It is a user-space implementation of chroot (change root).

Feature chroot (Traditional Linux) PRoot (Used by Andronix/Termux)
Needs Root Access Yes (Requires elevated privileges) No (Runs completely in user space)
Mechanism A kernel syscall that genuinely changes the root directory. A user-space program that intercepts system calls and redirects file paths using ptrace.
Purpose To run a Linux environment without modifying the host's root file system.

Since most Android phones don't allow un-rooted users to use the traditional chroot command, PRoot is the necessary workaround to containerize a full Linux distribution like Ubuntu or Fedora on Android.