3 ms·
But isn't chroot typically used by normal users anyway ?
by johnchristopher 7y ago
But isn't chroot typically used by normal users anyway ?
- cyphar 7y agochroot(2) requires privileges (CAP_SYS_CHROOT on Linux). Otherwise you could trick setuid binaries into doing some pretty bad things.
- antpls 7y agoMaybe were you thinking about fakeroot ? "fakeroot runs a command in an environment wherein it appears to have root privileges for file manipulation. This is useful for allowing users to create archives (tar, ar, .deb etc.) with files in them with root permissions/ownership." https://man.cx/fakeroot(1) https://man.cx/fakeroot(1)