termux / proot

An chroot-like implementation using ptrace.
https://wiki.termux.com/wiki/PRoot
Other
742 stars 162 forks source link

Unable to enter the root user after running termux-chroot command #279

Closed laisc7301 closed 1 year ago

laisc7301 commented 1 year ago

Problem description 运行termux-chroot后无法进入root用户

Steps to reproduce

Report issues at https://termux.dev/issues

~ $ whoami
u0_a207
~ $ termux-chroot
~ $ whoami
u0_a207
~ $ 

Expected behavior

Additional information

Proot version: 5.1.0 Kernel version: 4.14.133+ Android version: 10 Device model: KOZ-AL00

sylirre commented 1 year ago

The purpose of termux-chroot is to change the visible file system layout. It will not turn your user into root.

The built-in help accessible through termux-chroot -h already explains that.