chroot, mount --bind, and binfmt_misc without privilege/setup for Linux
GNU General Public License v2.0
1.96k
stars
369
forks
source link
Root directory and system-related files change ownership to the current user when the user changes #380
Open
LeiCraft opened 3 months ago
Expected Behavior
Ownership should not change
Actual Behavior
When switching to a non-root user, the ownership of almost all files and directories changes
Steps to Reproduce the Problem
proot -0 -rootfs "<path>" -b /dev -b /sys -b /proc
useradd -s /bin/bash <username>
sudo su <username>
to change Userls -l /
to see the issueSpecifications
Command Output